]> 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)
commitf07c47344bea86338be8f7088111038075cf521a
tree1a20612410bf86452ed5136728328f6cc3f02012
parent7a0ba0bcded3ba5d56911e8828d8755c85595e0f
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: 390dff99da87 ("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