diff options
author | Tom Herbert <therbert@google.com> | 2011-11-28 11:32:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-29 12:46:19 -0500 |
commit | 7346649826382b769cfadf4a2fe8a84d060c55e9 (patch) | |
tree | 0241cce453992881f61d3fbc4f9baf7eb0578135 /net/sched/sch_teql.c | |
parent | 75957ba36c05b979701e9ec64b37819adc12f830 (diff) |
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>
Diffstat (limited to 'net/sched/sch_teql.c')
-rw-r--r-- | net/sched/sch_teql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_teql.c b/net/sched/sch_teql.c index a3b7120fcc74..283bfe3de59d 100644 --- a/net/sched/sch_teql.c +++ b/net/sched/sch_teql.c | |||
@@ -301,7 +301,7 @@ restart: | |||
301 | 301 | ||
302 | if (slave_txq->qdisc_sleeping != q) | 302 | if (slave_txq->qdisc_sleeping != q) |
303 | continue; | 303 | continue; |
304 | if (__netif_subqueue_stopped(slave, subq) || | 304 | if (netif_xmit_stopped(netdev_get_tx_queue(slave, subq)) || |
305 | !netif_running(slave)) { | 305 | !netif_running(slave)) { |
306 | busy = 1; | 306 | busy = 1; |
307 | continue; | 307 | continue; |
@@ -312,7 +312,7 @@ restart: | |||
312 | if (__netif_tx_trylock(slave_txq)) { | 312 | if (__netif_tx_trylock(slave_txq)) { |
313 | unsigned int length = qdisc_pkt_len(skb); | 313 | unsigned int length = qdisc_pkt_len(skb); |
314 | 314 | ||
315 | if (!netif_tx_queue_frozen_or_stopped(slave_txq) && | 315 | if (!netif_xmit_frozen_or_stopped(slave_txq) && |
316 | slave_ops->ndo_start_xmit(skb, slave) == NETDEV_TX_OK) { | 316 | slave_ops->ndo_start_xmit(skb, slave) == NETDEV_TX_OK) { |
317 | txq_trans_update(slave_txq); | 317 | txq_trans_update(slave_txq); |
318 | __netif_tx_unlock(slave_txq); | 318 | __netif_tx_unlock(slave_txq); |
@@ -324,7 +324,7 @@ restart: | |||
324 | } | 324 | } |
325 | __netif_tx_unlock(slave_txq); | 325 | __netif_tx_unlock(slave_txq); |
326 | } | 326 | } |
327 | if (netif_queue_stopped(dev)) | 327 | if (netif_xmit_stopped(netdev_get_tx_queue(dev, 0))) |
328 | busy = 1; | 328 | busy = 1; |
329 | break; | 329 | break; |
330 | case 1: | 330 | case 1: |