)]}'
{
  "commit": "318cbe649aed5c2a28dea3ceaff7ccd2af871ab4",
  "tree": "90a8fda0726378f3efb6138c05e51e44366a805d",
  "parents": [
    "3d659a35bb317840156840a3e6cee4fa9124bd1f"
  ],
  "author": {
    "name": "Marcin Niestroj",
    "email": "m.niestroj@grinn-global.com",
    "time": "Mon Oct 26 18:46:21 2020 +0100"
  },
  "committer": {
    "name": "Maureen Helm",
    "email": "maureen.helm@nxp.com",
    "time": "Tue Oct 27 09:24:38 2020 -0500"
  },
  "message": "drivers: modem: cmd_handler: rework reading from interface\n\nSo far a dedicated buffer was used for data read from modem\ninterface. New net_bufs were allocated and filled later, which means\nthat data was lost when no more net_bufs were available in the pool.\n\nPrevent data loss by allocating net_buf before attempting any read on\nmodem interface. Process incoming data in a loop as long as reading from\ninterface results in new data. Also remove dedicated buffer\n(data-\u003eread_buf) and directly fill net_buf content instead. As a side\neffect there are less memory copy operations and RAM usage is reduced.\n\nPre-allocated net_buf is now always appended to data-\u003erx_buf. When there\nwas no (more) data read from interface to such net_buf, then this empty\nnet_buf will be on the end of data-\u003erx_buf fragment list. Update\nskipcrlf() and findcrlf() implementations to explicitly check for each\nnet_buf length, instead of blindly assuming them to have at least single\nbyte.\n\nSigned-off-by: Marcin Niestroj \u003cm.niestroj@grinn-global.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a289d1061e88817b9f7fe98b277e545f975bf796",
      "old_mode": 33188,
      "old_path": "drivers/modem/gsm_ppp.c",
      "new_id": "f9e467c9ad077ff56b055e9f81af37b900932f5b",
      "new_mode": 33188,
      "new_path": "drivers/modem/gsm_ppp.c"
    },
    {
      "type": "modify",
      "old_id": "6f3d42dc17a8e7b5641dd84fc331bac1011837c3",
      "old_mode": 33188,
      "old_path": "drivers/modem/modem_cmd_handler.c",
      "new_id": "9bf7f00f904dc60f4fa9a62416c4bfad68409e7f",
      "new_mode": 33188,
      "new_path": "drivers/modem/modem_cmd_handler.c"
    },
    {
      "type": "modify",
      "old_id": "027184ee3142b1c0289539106cda4518a10441cc",
      "old_mode": 33188,
      "old_path": "drivers/modem/modem_cmd_handler.h",
      "new_id": "e0d3e268b2aada8fe96de57ccd4e2fd1bafb81b0",
      "new_mode": 33188,
      "new_path": "drivers/modem/modem_cmd_handler.h"
    },
    {
      "type": "modify",
      "old_id": "501ab02e8d85901d20b6e717cd32e91aeb8b9ba9",
      "old_mode": 33188,
      "old_path": "drivers/modem/ublox-sara-r4.c",
      "new_id": "1be5f6777822dc50abb9f1d079131160cfd9c39b",
      "new_mode": 33188,
      "new_path": "drivers/modem/ublox-sara-r4.c"
    },
    {
      "type": "modify",
      "old_id": "23d3d54deb35816b32e70cfffd4da9e8b24e0eae",
      "old_mode": 33188,
      "old_path": "drivers/wifi/esp/esp.c",
      "new_id": "f7f506b8e98418fdf7a71f3c81dac91bf978b678",
      "new_mode": 33188,
      "new_path": "drivers/wifi/esp/esp.c"
    },
    {
      "type": "modify",
      "old_id": "4669aeec852f3fba82fe3532cb1bda39a32b345c",
      "old_mode": 33188,
      "old_path": "drivers/wifi/esp/esp.h",
      "new_id": "4c3c3952b16aaa934ed7f9608b54808168d86236",
      "new_mode": 33188,
      "new_path": "drivers/wifi/esp/esp.h"
    }
  ]
}
