]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteaa02c1650b5a28aa786db4c099535d26f7220c2
tree2b36038e5eeb201f08ae11b1c54d7627288f13f9
parent033760492f70d17f78fec4bd479013379f5f7744
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