cxgb4: improve credits recovery in TC-MQPRIO Tx path
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 15 May 2020 17:11:03 +0000 (22:41 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 May 2020 17:54:07 +0000 (10:54 -0700)
commit4f1d97262d58e0f493d03de4938bce736ac3cf3d
treec8f4d4309e0cf0828a0502e0f491789bd129ebcb
parent3430223d393dd23734cc87177d704449cfc294a8
cxgb4: improve credits recovery in TC-MQPRIO Tx path

Request credit update for every half credits consumed, including
the current request. Also, avoid re-trying to post packets when there
are no credits left. The credit update reply via interrupt will
eventually restore the credits and will invoke the Tx path again.

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