]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix NAPI handling under high load
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 18 Oct 2018 17:56:01 +0000 (19:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 18:33:29 +0000 (11:33 -0700)
commit6646776fa93ae280628f05861e8f9fe7b821e053
treeff03cc172c8ac189df65e1134bc6400a88907217
parent08499ad4632eae3a001da630808773bc5272a76b
r8169: fix NAPI handling under high load

rtl_rx() and rtl_tx() are called only if the respective bits are set
in the interrupt status register. Under high load NAPI may not be
able to process all data (work_done == budget) and it will schedule
subsequent calls to the poll callback.
rtl_ack_events() however resets the bits in the interrupt status
register, therefore subsequent calls to rtl8169_poll() won't call
rtl_rx() and rtl_tx() - chip interrupts are still disabled.

Fix this by calling rtl_rx() and rtl_tx() independent of the bits
set in the interrupt status register. Both functions will detect
if there's nothing to do for them.

Fixes: 5f5a0514c089 ("r8169: remove work from irq handler.")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c