]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 12 Jan 2017 20:09:09 +0000 (12:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jan 2017 17:19:07 +0000 (12:19 -0500)
commite53cf38194280e559ffe28ad2fbad253ba34222b
treec6d987671822dc7838d99c79e155e45a3d301e7f
parentd39854d0241b9b6fc101a1821dca080ba1c065e5
net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim

The __bcm_sysport_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 transit flow control.

Introduce bcm_sysport_tx_clean() which cleans the ring, but does not
re-enable flow control towards the networking stack, and make
bcm_sysport_tx_reclaim() do the actual transmit queue flow control.

Fixes: 2912eb7400ef ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c