These patches are the result of investigating dropped packages while working with an AX88179A based UGREEN USB ethernet adapter. The main improvements are bounds and consistency checking in the RX path. What I couldn't fix at the moment is that the adapter sometimes stops receiving packets after a "warm reset" of the device which doesn't power cycle the device e.g. chain loading barebox via tftp without a power cycle of the whole USB bus and devices.
I tried the following U-Boot commits, but they didn't fix the issue. - 9713c15d2e6 ("eth: asix88179: Fix ASIX AX88179A PHY hang") - 1bd136715a4 ("eth: asix88179: reset during probe") What helps in the situation is physically re-plugging the ethernet cable, which triggers a link reset in software. This link reset also happens while opening the device so I'm suspecting a bug in the controller itself (or there are still some missing reset instructions). The Realtek RTL8153 chipsets seem handle this situation better, so it is adviced to use them in a "warm reset" scenario until this is fixed. Signed-off-by: Stefan Kerkmann <s.kerkm...@pengutronix.de> --- Stefan Kerkmann (2): net: usb: ax88179_178a: align rx_fixup with upstream net: usb: ax88179_178a: align reset with upstream drivers/net/usb/ax88179_178a.c | 79 ++++++++++++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 22 deletions(-) --- base-commit: ed59f724912d0b4a86f88fa318836260c88271d1 change-id: 20250813-fix-ax88179_178a-dropped-packets-39cbcd9f2c87 Best regards, -- Stefan Kerkmann <s.kerkm...@pengutronix.de>