mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 02:05:57 +00:00
The cause for this change is TCP. Until now, the radio strategy driver (ALOHA or CSMA) was providing the actual nbuf, and not the buffer fragment, counting on the fact that the loop was using net_buf_frag_del() which made so, iteration after iteration, buffer framgent to be always buf->frags. The problem with this logic is loosing the fragments that might be still referenced by TCP, in case the whole buffer did not make it so TCP can retry later and so on. Instead, TX now takes the nbuf and the actual frag to send. It could have been working with just a pointer on the data, and the whole length of the frame. But it has been avoided due to possible future devices, that will be smarter and run CSMA directly in the hw, thus it will require to access the whole buffer list through the nbuf. Change-Id: I8d77b1e13b648c0ec3645cb2d55d1910d00381ea Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> |
||
---|---|---|
.. | ||
ieee802154_cc2520_regs.h | ||
ieee802154_cc2520.c | ||
ieee802154_cc2520.h | ||
ieee802154_mcr20a_regs.h | ||
ieee802154_mcr20a.c | ||
ieee802154_mcr20a.h | ||
ieee802154_uart_pipe.c | ||
ieee802154_uart_pipe.h | ||
Kconfig | ||
Makefile |