]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: make NAPI polling thread safe 19960/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 5 Sep 2025 06:53:41 +0000 (02:53 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 7 Sep 2025 09:36:01 +0000 (11:36 +0200)
commit2420a7755665d50c7bbd0fefb13a36eb0457bcbd
tree04c545781a01f2221cb55956df46dcbe43f35fc7
parente3ccd1a287f59ffe0617efe44edd88dfa212f3d0
realtek: make NAPI polling thread safe

At the end of RX NAPI polling the counter and mask registers are
cleaned up. Although this might run in parallel there is no
synchronization and the register modifications are some wild mix.
RTL83xx enables only the interrupt of a single ring while RTL93xx
just reactivates all interrupts (even for other NAPI threads).
Make use of the driver lock and only modify the interrupt bits that
the current thread owns.

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