bgmac: leave interrupts disabled as long as there is work to do
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 Apr 2015 10:07:55 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Apr 2015 18:57:10 +0000 (14:57 -0400)
commiteb64e2923a886441c7b322f138b36029f3fa6a36
tree2b36038e5eeb201f08ae11b1c54d7627288f13f9
parentb38c83dd08665a93e439c4ffd9eef31bc098a6ea
bgmac: leave interrupts disabled as long as there is work to do

Always poll rx and tx during NAPI poll instead of relying on the status
of the first interrupt. This prevents bgmac_poll from leaving unfinished
work around until the next IRQ.
In my tests this makes bridging/routing throughput under heavy load more
stable and ensures that no new IRQs arrive as long as bgmac_poll uses up
the entire budget.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h