net: bcmgenet: decouple flow control from bcmgenet_tx_reclaim
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:50 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commit6d22fe14005ce66d1a120495ac16499b944feb95
tree1a20612410bf86452ed5136728328f6cc3f02012
parent89316fa34ab8afac8d693f41a5bc268673f1da15
net: bcmgenet: decouple flow control from bcmgenet_tx_reclaim

The bcmgenet_tx_reclaim() function is used to reclaim transmit
resources in different places within the driver.  Most of them
should not affect the state of the transmit flow control.

This commit relocates the logic for waking tx queues based on
freed resources to the napi polling function where it is more
appropriate.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c