net: Add queue state xoff flag for stack
Create separate queue state flags so that either the stack or drivers can turn on XOFF. Added a set of functions used in the stack to determine if a queue is really stopped (either by stack or driver) Signed-off-by: Tom Herbert <therbert@google.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
75957ba36c
commit
7346649826
@@ -3342,7 +3342,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
|
||||
|
||||
__netif_tx_lock_bh(txq);
|
||||
|
||||
if (unlikely(netif_tx_queue_frozen_or_stopped(txq))) {
|
||||
if (unlikely(netif_xmit_frozen_or_stopped(txq))) {
|
||||
ret = NETDEV_TX_BUSY;
|
||||
pkt_dev->last_ok = 0;
|
||||
goto unlock;
|
||||
|
Reference in New Issue
Block a user