]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44748c1765b21b5bfd3c402f9d820c4c6ce472fc
treec8f4d4309e0cf0828a0502e0f491789bd129ebcb
parent6c5a33ea295dbafbfa17244a113fd603528eccdf
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