diff options
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r-- | net/sched/sch_generic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 4e2b865cbba0..2f575b9017d1 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -166,7 +166,7 @@ static inline int qdisc_restart(struct netdev_queue *txq) | |||
166 | 166 | ||
167 | HARD_TX_LOCK(dev, txq, smp_processor_id()); | 167 | HARD_TX_LOCK(dev, txq, smp_processor_id()); |
168 | if (!netif_subqueue_stopped(dev, skb)) | 168 | if (!netif_subqueue_stopped(dev, skb)) |
169 | ret = dev_hard_start_xmit(skb, dev); | 169 | ret = dev_hard_start_xmit(skb, dev, txq); |
170 | HARD_TX_UNLOCK(dev, txq); | 170 | HARD_TX_UNLOCK(dev, txq); |
171 | 171 | ||
172 | spin_lock(&txq->lock); | 172 | spin_lock(&txq->lock); |
@@ -198,11 +198,10 @@ static inline int qdisc_restart(struct netdev_queue *txq) | |||
198 | 198 | ||
199 | void __qdisc_run(struct netdev_queue *txq) | 199 | void __qdisc_run(struct netdev_queue *txq) |
200 | { | 200 | { |
201 | struct net_device *dev = txq->dev; | ||
202 | unsigned long start_time = jiffies; | 201 | unsigned long start_time = jiffies; |
203 | 202 | ||
204 | while (qdisc_restart(txq)) { | 203 | while (qdisc_restart(txq)) { |
205 | if (netif_queue_stopped(dev)) | 204 | if (netif_tx_queue_stopped(txq)) |
206 | break; | 205 | break; |
207 | 206 | ||
208 | /* | 207 | /* |