[NET_SCHED]: Set parent classid in default qdiscs
Set parent classids in default qdiscs to allow walking up the tree from outside the qdiscs. This is needed by the next patch. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
814a175e7b
commit
9f9afec482
@ -574,7 +574,8 @@ static int netem_init(struct Qdisc *sch, struct rtattr *opt)
|
||||
q->timer.function = netem_watchdog;
|
||||
q->timer.data = (unsigned long) sch;
|
||||
|
||||
q->qdisc = qdisc_create_dflt(sch->dev, &tfifo_qdisc_ops);
|
||||
q->qdisc = qdisc_create_dflt(sch->dev, &tfifo_qdisc_ops,
|
||||
TC_H_MAKE(sch->handle, 1));
|
||||
if (!q->qdisc) {
|
||||
pr_debug("netem: qdisc create failed\n");
|
||||
return -ENOMEM;
|
||||
|
Reference in New Issue
Block a user