]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix Txq restart check during backpressure
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Thu, 19 Mar 2020 17:38:10 +0000 (23:08 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:30:14 +0000 (21:30 -0700)
commit6f926957ef6e5ade67bb5fe57d427e0c1a6866db
tree018d1c9eddc9f1c1efe69ea18c035e9af1f25aa7
parent88c87a032fa2874139399399e83a74d815a2952b
cxgb4: fix Txq restart check during backpressure

Driver reclaims descriptors in much smaller batches, even if hardware
indicates more to reclaim, during backpressure. So, fix the check to
restart the Txq during backpressure, by looking at how many
descriptors hardware had indicated to reclaim, and not on how many
descriptors that driver had actually reclaimed. Once the Txq is
restarted, driver will reclaim even more descriptors when Tx path
is entered again.

Fixes: e394725b5503 ("cxgb4/cxgb4vf: Add support for SGE doorbell queue timer")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c