bnxt_en: Fix xmit_more with BQL.
Michael Chan
maintainerPATCH 1/1 bnxt_en: Fix xmit_more with BQL.
We need to write the doorbell if BQL has stopped the queue and skb->xmit_more is set. Otherwise it is possible for the tx queue to rot and cause tx timeout.
Fixes 4d172f21cefe ("bnxt_en: Implement xmit_more.")
Suggested-by Yuval Mintz <[email protected]>
Signed-off-by Michael Chan <[email protected]>
--- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/bnxt/bnxt.c +1 -1
@@ -463,7 +463,7 @@ static netdev_tx_t bnxt_start_xmit(struct sk_buff *skb, struct net_device *dev) prod =NEXT_TX (prod); txr->tx_prod = prod; -if (!skb->xmit_more) +if (!skb->xmit_more ||netif_xmit_stopped (txq))bnxt_db_write (bp, txr->tx_doorbell,DB_KEY_TX | prod); tx_done:
Signature · 1 line
1.8.3.1
From: Michael Chan <[email protected]>
Date: Tue, 30 May 2017 20:03:00 -0400
Quoted 7 lines
We need to write the doorbell if BQL has stopped the queue and
skb->xmit_moreis set. Otherwise it is possible for the tx queue to rot and cause tx timeout.Fixes 4d172f21cefe ("bnxt_en: Implement xmit_more.")Suggested-by Yuval Mintz <[email protected]>Signed-off-by Michael Chan <[email protected]>
Applied, thanks.