[PKT_SCHED]: make dsmark try using pfifo instead of noop while grafting

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Thomas Graf and committed by
David S. Miller
486b53e5 0451eb07

+7 -2
+7 -2
net/sched/sch_dsmark.c
··· 73 73 74 74 DPRINTK("dsmark_graft(sch %p,[qdisc %p],new %p,old %p)\n",sch,p,new, 75 75 old); 76 - if (!new) 77 - new = &noop_qdisc; 76 + 77 + if (new == NULL) { 78 + new = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops); 79 + if (new == NULL) 80 + new = &noop_qdisc; 81 + } 82 + 78 83 sch_tree_lock(sch); 79 84 *old = xchg(&p->q,new); 80 85 if (*old)