mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
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: 4d172f21ce
("bnxt_en: Implement xmit_more.")
Suggested-by: Yuval Mintz <yuval.mintz@cavium.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a5c66b5726
commit
ffe4064577
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue