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)
commitcd33ccf5fd87e94342b6cf8990e2e1570632c276
tree844744bdc16d599a30ee41596ab8bf7fb45c500b
parent8f02d8da969a73133d82edaaa63f6286fba0195a
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