]> 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)
commitccd4b270a7ea674c553d9c998cec09b650ef5b95
tree018d1c9eddc9f1c1efe69ea18c035e9af1f25aa7
parent0ddf97e56118e0de3a6e828f553b9f34c713c371
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: bd0ef9097b8b ("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