]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28ac36db076b44753cb1f4aea8d4aaaabd7505c2
tree1a20612410bf86452ed5136728328f6cc3f02012
parentb5a6fdc49a8795abfe8cc1a484c42a0591e4f73e
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: 83c070ed8c89 ("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