]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: be defensive in rteth_confirm_and_disable_irqs()
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Mon, 23 Feb 2026 17:44:25 +0000 (18:44 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 27 Feb 2026 17:24:25 +0000 (18:24 +0100)
commit0eac896cc7697a2a522a2da417dd3cbea8937db7
tree5e49b48b61fbaf479d4911f425c24062c015b312
parent46da6feabc381f991e119a401a9805a54476728c
realtek: eth: be defensive in rteth_confirm_and_disable_irqs()

With latest refactoring irq activation and deactivation is side-by-side
in the code. This makes it easier to align these functions. Current
assumption is, that the ethernet irq is only called on one cpu and
napi handling does not interfere. So it should be totally fine to
run irq disabling (called from interrupt handler) without locks.
Nevertheless be defensive and add a lock(). So in the case the ethernet
irq is fired twice on two cpus (e.g. RTL931x) the code is on the
safe side.

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