Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18747
b: refs/heads/master
c: dd914b4
h: refs/heads/master
i:
  18745: e6b5cb3
  18743: 6d92fc7
v: v3
  • Loading branch information
Amnon Aaronsohn authored and David S. Miller committed Jan 17, 2006
1 parent e63d6d2 commit 8d1c276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9343e79a7bb2d3268d68997163608b87d58d8098
refs/heads/master: dd914b4082cfbe28849898a0a98757827829c813
7 changes: 3 additions & 4 deletions trunk/net/sched/sch_prio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; i<q->bands; 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);
Expand Down

0 comments on commit 8d1c276

Please sign in to comment.