Commit ec9e993
net: systemport: Decouple flow control from __bcm_sysport_tx_reclaim
[ Upstream commit 148d3d021cf9724fcf189ce4e525a094bbf5ce89 ]
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: 80105be ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 40e7c72 commit ec9e993
1 file changed
Lines changed: 18 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | 735 | | |
737 | 736 | | |
738 | | - | |
739 | | - | |
740 | 737 | | |
741 | 738 | | |
742 | 739 | | |
| |||
767 | 764 | | |
768 | 765 | | |
769 | 766 | | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | 767 | | |
774 | 768 | | |
775 | 769 | | |
| |||
781 | 775 | | |
782 | 776 | | |
783 | 777 | | |
| 778 | + | |
784 | 779 | | |
785 | 780 | | |
786 | 781 | | |
| 782 | + | |
| 783 | + | |
787 | 784 | | |
788 | 785 | | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
794 | 805 | | |
795 | 806 | | |
796 | 807 | | |
| |||
1275 | 1286 | | |
1276 | 1287 | | |
1277 | 1288 | | |
1278 | | - | |
| 1289 | + | |
1279 | 1290 | | |
1280 | 1291 | | |
1281 | 1292 | | |
| |||
0 commit comments