]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: refactor net rx interrupt handler rtl83xx_net_irq() 18855/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 20 May 2025 20:10:44 +0000 (16:10 -0400)
committerRobert Marko <robimarko@gmail.com>
Wed, 21 May 2025 11:54:06 +0000 (13:54 +0200)
commit8dde1e463884b3ac84d7ba9ca7ce557c4f6e117d
treecedd5d8a33572fcc57dc9d8e7bcf9fcb9a1f2d61
parent0912d3f595478c03964d628b55822a2bca1b9f45
realtek: refactor net rx interrupt handler rtl83xx_net_irq()

Cleanup the code of the RTL83xx packet receive interrupt handler. Not
only for better readability but to avoid inconsistencies and stalls on
the RTL839x targets.

The current implementation seems to come from the GPL source code.
Calling the existing cleanup() function inside the interrupt context
without any locks conflicts with SMP & NAPI polling and makes things
worse instead of giving any benefit. Simply ignore RX buffer overruns
and let the device handle packet dropping itself.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18855
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h