mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
95196fb7e4
If there is an event to be handled by _esp_eth_isr(), don't overwrite it if a new packet has been received. In my testing, all SYSTEM_EVENT_ETH_CONNECTED events except the first are immediately followed by at least one SYSTEM_EVENT_ETH_RX_DONE event. This causes the SYSTEM_EVENT_ETH_CONNECTED to not get handled, and the IP stack will not be notified of the new link state. Protect the other events by dropping the packet instead. If an earlier unhandled SYSTEM_EVENT_ETH_RX_DONE event exists, overwrite it with the newer packet. I only saw this happen with lwIP and not with GNRC - I am not sure why. But it still is a race waiting to happen. The nice long term solution is probably to have a queue of unhandled events, allowing them all to be processed once there is time. |
||
---|---|---|
.. | ||
doc.txt | ||
esp_eth_gnrc.c | ||
esp_eth_netdev.c | ||
esp_eth_netdev.h | ||
esp_eth_params.h | ||
Makefile |