diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /net/sched/sch_multiq.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'net/sched/sch_multiq.c')
-rw-r--r-- | net/sched/sch_multiq.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 2a2b096d9a6..edc1950e0e7 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c | |||
@@ -107,8 +107,7 @@ static struct sk_buff *multiq_dequeue(struct Qdisc *sch) | |||
107 | /* Check that target subqueue is available before | 107 | /* Check that target subqueue is available before |
108 | * pulling an skb to avoid head-of-line blocking. | 108 | * pulling an skb to avoid head-of-line blocking. |
109 | */ | 109 | */ |
110 | if (!netif_xmit_stopped( | 110 | if (!__netif_subqueue_stopped(qdisc_dev(sch), q->curband)) { |
111 | netdev_get_tx_queue(qdisc_dev(sch), q->curband))) { | ||
112 | qdisc = q->queues[q->curband]; | 111 | qdisc = q->queues[q->curband]; |
113 | skb = qdisc->dequeue(qdisc); | 112 | skb = qdisc->dequeue(qdisc); |
114 | if (skb) { | 113 | if (skb) { |
@@ -139,8 +138,7 @@ static struct sk_buff *multiq_peek(struct Qdisc *sch) | |||
139 | /* Check that target subqueue is available before | 138 | /* Check that target subqueue is available before |
140 | * pulling an skb to avoid head-of-line blocking. | 139 | * pulling an skb to avoid head-of-line blocking. |
141 | */ | 140 | */ |
142 | if (!netif_xmit_stopped( | 141 | if (!__netif_subqueue_stopped(qdisc_dev(sch), curband)) { |
143 | netdev_get_tx_queue(qdisc_dev(sch), curband))) { | ||
144 | qdisc = q->queues[curband]; | 142 | qdisc = q->queues[curband]; |
145 | skb = qdisc->ops->peek(qdisc); | 143 | skb = qdisc->ops->peek(qdisc); |
146 | if (skb) | 144 | if (skb) |
@@ -284,8 +282,7 @@ static int multiq_dump(struct Qdisc *sch, struct sk_buff *skb) | |||
284 | opt.bands = q->bands; | 282 | opt.bands = q->bands; |
285 | opt.max_bands = q->max_bands; | 283 | opt.max_bands = q->max_bands; |
286 | 284 | ||
287 | if (nla_put(skb, TCA_OPTIONS, sizeof(opt), &opt)) | 285 | NLA_PUT(skb, TCA_OPTIONS, sizeof(opt), &opt); |
288 | goto nla_put_failure; | ||
289 | 286 | ||
290 | return skb->len; | 287 | return skb->len; |
291 | 288 | ||