]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: refactor net rx interrupt handler rtl83xx_net_irq()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 20 May 2025 20:10:44 +0000 (16:10 -0400)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 8 Jun 2025 19:19:31 +0000 (21:19 +0200)
commit072fd4de3c689bf9740f93cc5a881fb67ba13d12
treede92a2f1aaeebf09fcaf0bd646e8e856f429d9b0
parent4c4b698a9c3e419d7dc95484e1d39272fcd39b1f
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>
(cherry picked from commit 8dde1e463884b3ac84d7ba9ca7ce557c4f6e117d)
Link: https://github.com/openwrt/openwrt/pull/18755
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/files-6.6/drivers/net/ethernet/rtl838x_eth.h