diff options
Diffstat (limited to 'net/sched/sch_multiq.c')
-rw-r--r-- | net/sched/sch_multiq.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 5d9cd68e91d1..915f3149dde2 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c | |||
@@ -97,6 +97,7 @@ static int | |||
97 | multiq_requeue(struct sk_buff *skb, struct Qdisc *sch) | 97 | multiq_requeue(struct sk_buff *skb, struct Qdisc *sch) |
98 | { | 98 | { |
99 | struct Qdisc *qdisc; | 99 | struct Qdisc *qdisc; |
100 | struct multiq_sched_data *q = qdisc_priv(sch); | ||
100 | int ret; | 101 | int ret; |
101 | 102 | ||
102 | qdisc = multiq_classify(skb, sch, &ret); | 103 | qdisc = multiq_classify(skb, sch, &ret); |
@@ -113,6 +114,10 @@ multiq_requeue(struct sk_buff *skb, struct Qdisc *sch) | |||
113 | if (ret == NET_XMIT_SUCCESS) { | 114 | if (ret == NET_XMIT_SUCCESS) { |
114 | sch->q.qlen++; | 115 | sch->q.qlen++; |
115 | sch->qstats.requeues++; | 116 | sch->qstats.requeues++; |
117 | if (q->curband) | ||
118 | q->curband--; | ||
119 | else | ||
120 | q->curband = q->bands - 1; | ||
116 | return NET_XMIT_SUCCESS; | 121 | return NET_XMIT_SUCCESS; |
117 | } | 122 | } |
118 | if (net_xmit_drop_count(ret)) | 123 | if (net_xmit_drop_count(ret)) |