413ede4b89
The ring_buf implementation is basically used as an array of net_buf pointers in the RX path. The tail and head indexes are taken from the RX descriptors and not from the ring_buf. That's why for example the fact that head is never initialized doesn't cause problem. Only len is used in free_rx_bufs(), but anyway this function is plainly broken as it always free the first net_buf and doesn't set it back to NULL. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
Kconfig.dw | ||
Kconfig.e1000 | ||
Kconfig.enc28j60 | ||
Kconfig.mcux | ||
Kconfig.native_posix | ||
Kconfig.sam_gmac | ||
Kconfig.smsc911x | ||
Kconfig.stellaris | ||
Kconfig.stm32_hal | ||
eth_dw.c | ||
eth_dw_priv.h | ||
eth_e1000.c | ||
eth_e1000_priv.h | ||
eth_enc28j60.c | ||
eth_enc28j60_priv.h | ||
eth_mcux.c | ||
eth_native_posix.c | ||
eth_native_posix_adapt.c | ||
eth_native_posix_priv.h | ||
eth_sam_gmac.c | ||
eth_sam_gmac_priv.h | ||
eth_smsc911x.c | ||
eth_smsc911x_priv.h | ||
eth_stellaris.c | ||
eth_stellaris_priv.h | ||
eth_stm32_hal.c | ||
eth_stm32_hal_priv.h | ||
phy_sam_gmac.c | ||
phy_sam_gmac.h |