diff options
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r-- | net/sched/sch_hfsc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 3a8267246a4f..5a22fec4eadd 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c | |||
@@ -1083,7 +1083,8 @@ hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid, | |||
1083 | cl->refcnt = 1; | 1083 | cl->refcnt = 1; |
1084 | cl->sched = q; | 1084 | cl->sched = q; |
1085 | cl->cl_parent = parent; | 1085 | cl->cl_parent = parent; |
1086 | cl->qdisc = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops, classid); | 1086 | cl->qdisc = qdisc_create_dflt(sch->dev, sch->dev_queue, |
1087 | &pfifo_qdisc_ops, classid); | ||
1087 | if (cl->qdisc == NULL) | 1088 | if (cl->qdisc == NULL) |
1088 | cl->qdisc = &noop_qdisc; | 1089 | cl->qdisc = &noop_qdisc; |
1089 | INIT_LIST_HEAD(&cl->children); | 1090 | INIT_LIST_HEAD(&cl->children); |
@@ -1201,7 +1202,8 @@ hfsc_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, | |||
1201 | if (cl->level > 0) | 1202 | if (cl->level > 0) |
1202 | return -EINVAL; | 1203 | return -EINVAL; |
1203 | if (new == NULL) { | 1204 | if (new == NULL) { |
1204 | new = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops, | 1205 | new = qdisc_create_dflt(sch->dev, sch->dev_queue, |
1206 | &pfifo_qdisc_ops, | ||
1205 | cl->cl_common.classid); | 1207 | cl->cl_common.classid); |
1206 | if (new == NULL) | 1208 | if (new == NULL) |
1207 | new = &noop_qdisc; | 1209 | new = &noop_qdisc; |
@@ -1443,7 +1445,8 @@ hfsc_init_qdisc(struct Qdisc *sch, struct nlattr *opt) | |||
1443 | q->root.cl_common.classid = sch->handle; | 1445 | q->root.cl_common.classid = sch->handle; |
1444 | q->root.refcnt = 1; | 1446 | q->root.refcnt = 1; |
1445 | q->root.sched = q; | 1447 | q->root.sched = q; |
1446 | q->root.qdisc = qdisc_create_dflt(sch->dev, &pfifo_qdisc_ops, | 1448 | q->root.qdisc = qdisc_create_dflt(sch->dev, sch->dev_queue, |
1449 | &pfifo_qdisc_ops, | ||
1447 | sch->handle); | 1450 | sch->handle); |
1448 | if (q->root.qdisc == NULL) | 1451 | if (q->root.qdisc == NULL) |
1449 | q->root.qdisc = &noop_qdisc; | 1452 | q->root.qdisc = &noop_qdisc; |