]> git.baikalelectronics.ru Git - kernel.git/commit
bcm63xx_enet: fix poll callback.
authorNicolas Schichan <nschichan@freebox.fr>
Tue, 3 Mar 2015 11:45:12 +0000 (12:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 20:44:52 +0000 (15:44 -0500)
commit44f0f047704b9004a534bb1f7e32256510ada0d7
tree844744bdc16d599a30ee41596ab8bf7fb45c500b
parent0c96189373bf87726d87a964728431be1946145b
bcm63xx_enet: fix poll callback.

In case there was some tx buffer reclaimed and not enough rx packets
to consume the whole budget, napi_complete would not be called and
interrupts would be kept disabled, effectively resulting in the
network core never to call the poll callback again and no rx/tx
interrupts to be fired either.

Fix that by only accounting the rx work done in the poll callback.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcm63xx_enet.c