aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 79ac1458c2ba..67fc573e013a 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -60,7 +60,7 @@ static inline struct sk_buff *dequeue_skb(struct Qdisc *q)
60 60
61 /* check the reason of requeuing without tx lock first */ 61 /* check the reason of requeuing without tx lock first */
62 txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); 62 txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb));
63 if (!netif_tx_queue_frozen_or_stopped(txq)) { 63 if (!netif_xmit_frozen_or_stopped(txq)) {
64 q->gso_skb = NULL; 64 q->gso_skb = NULL;
65 q->q.qlen--; 65 q->q.qlen--;
66 } else 66 } else
@@ -121,7 +121,7 @@ int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q,
121 spin_unlock(root_lock); 121 spin_unlock(root_lock);
122 122
123 HARD_TX_LOCK(dev, txq, smp_processor_id()); 123 HARD_TX_LOCK(dev, txq, smp_processor_id());
124 if (!netif_tx_queue_frozen_or_stopped(txq)) 124 if (!netif_xmit_frozen_or_stopped(txq))
125 ret = dev_hard_start_xmit(skb, dev, txq); 125 ret = dev_hard_start_xmit(skb, dev, txq);
126 126
127 HARD_TX_UNLOCK(dev, txq); 127 HARD_TX_UNLOCK(dev, txq);
@@ -143,7 +143,7 @@ int sch_direct_xmit(struct sk_buff *skb, struct Qdisc *q,
143 ret = dev_requeue_skb(skb, q); 143 ret = dev_requeue_skb(skb, q);
144 } 144 }
145 145
146 if (ret && netif_tx_queue_frozen_or_stopped(txq)) 146 if (ret && netif_xmit_frozen_or_stopped(txq))
147 ret = 0; 147 ret = 0;
148 148
149 return ret; 149 return ret;
@@ -242,7 +242,7 @@ static void dev_watchdog(unsigned long arg)
242 * old device drivers set dev->trans_start 242 * old device drivers set dev->trans_start
243 */ 243 */
244 trans_start = txq->trans_start ? : dev->trans_start; 244 trans_start = txq->trans_start ? : dev->trans_start;
245 if (netif_tx_queue_stopped(txq) && 245 if (netif_xmit_stopped(txq) &&
246 time_after(jiffies, (trans_start + 246 time_after(jiffies, (trans_start +
247 dev->watchdog_timeo))) { 247 dev->watchdog_timeo))) {
248 some_queue_timedout = 1; 248 some_queue_timedout = 1;