Files
Hsiu-Chi Tsai 6a8098fbee ramips: ethernet: ralink: check napi_complete_done() result
fe_poll() enables the RX and TX interrupts after napi_complete_done()
without looking at its return value. napi_complete_done() returns false
when the interrupts have to stay masked, for example during busy
polling, or when IRQ deferral (napi_defer_hard_irqs together with
gro_flush_timeout) has armed a timer to poll again.

Only enable the interrupts when it returns true, as
Documentation/networking/napi.rst asks. The mainline mtk_eth_soc
driver does the same in mtk_napi_rx() and mtk_napi_tx(). The value
that fe_poll() returns does not change.

Fixes: https://github.com/openwrt/openwrt/issues/25742
Signed-off-by: Hsiu-Chi Tsai <hctsai@linux.com>
Link: https://github.com/openwrt/openwrt/pull/25744
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-10-12 19:53:47 +02:00
..
2026-10-01 00:49:54 +02:00
…