Skip to content

Commit

Permalink
[PKT_SCHED]: make dsmark try using pfifo instead of noop while grafting
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Graf authored and David S. Miller committed May 31, 2005
1 parent 0451eb0 commit 486b53e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions net/sched/sch_dsmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ static int dsmark_graft(struct Qdisc *sch,unsigned long arg,

DPRINTK("dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n",sch,p,new,
old);
if (!new)
new = &noop_qdisc;

if (new == NULL) {
new = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops);
if (new == NULL)
new = &noop_qdisc;
}

sch_tree_lock(sch);
*old = xchg(&p->q,new);
if (*old)
Expand Down

0 comments on commit 486b53e

Please sign in to comment.