From 8d1c27681b3f08dacfa3f9c3e95317f6b6c388e7 Mon Sep 17 00:00:00 2001 From: Amnon Aaronsohn Date: Tue, 17 Jan 2006 02:24:26 -0800 Subject: [PATCH] --- yaml --- r: 18747 b: refs/heads/master c: dd914b4082cfbe28849898a0a98757827829c813 h: refs/heads/master i: 18745: e6b5cb3ec4ad43f674f4d259524c4d3eab1be430 18743: 6d92fc7de2cecc7e5b7dfc74733791a312bffd19 v: v3 --- [refs] | 2 +- trunk/net/sched/sch_prio.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 29d49b368a90..87aade1d732c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9343e79a7bb2d3268d68997163608b87d58d8098 +refs/heads/master: dd914b4082cfbe28849898a0a98757827829c813 diff --git a/trunk/net/sched/sch_prio.c b/trunk/net/sched/sch_prio.c index 5b3a3e48ed92..1641db33a994 100644 --- a/trunk/net/sched/sch_prio.c +++ b/trunk/net/sched/sch_prio.c @@ -228,14 +228,13 @@ static int prio_tune(struct Qdisc *sch, struct rtattr *opt) } sch_tree_unlock(sch); - for (i=0; i<=TC_PRIO_MAX; i++) { - int band = q->prio2band[i]; - if (q->queues[band] == &noop_qdisc) { + for (i=0; ibands; i++) { + if (q->queues[i] == &noop_qdisc) { struct Qdisc *child; child = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops); if (child) { sch_tree_lock(sch); - child = xchg(&q->queues[band], child); + child = xchg(&q->queues[i], child); if (child != &noop_qdisc) qdisc_destroy(child);