diff options
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r-- | net/sched/sch_hfsc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 47496098d35c..069c62b7bb36 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c | |||
@@ -1088,7 +1088,7 @@ hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid, | |||
1088 | cl->refcnt = 1; | 1088 | cl->refcnt = 1; |
1089 | cl->sched = q; | 1089 | cl->sched = q; |
1090 | cl->cl_parent = parent; | 1090 | cl->cl_parent = parent; |
1091 | cl->qdisc = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue, | 1091 | cl->qdisc = qdisc_create_dflt(sch->dev_queue, |
1092 | &pfifo_qdisc_ops, classid); | 1092 | &pfifo_qdisc_ops, classid); |
1093 | if (cl->qdisc == NULL) | 1093 | if (cl->qdisc == NULL) |
1094 | cl->qdisc = &noop_qdisc; | 1094 | cl->qdisc = &noop_qdisc; |
@@ -1209,8 +1209,7 @@ hfsc_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, | |||
1209 | if (cl->level > 0) | 1209 | if (cl->level > 0) |
1210 | return -EINVAL; | 1210 | return -EINVAL; |
1211 | if (new == NULL) { | 1211 | if (new == NULL) { |
1212 | new = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue, | 1212 | new = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, |
1213 | &pfifo_qdisc_ops, | ||
1214 | cl->cl_common.classid); | 1213 | cl->cl_common.classid); |
1215 | if (new == NULL) | 1214 | if (new == NULL) |
1216 | new = &noop_qdisc; | 1215 | new = &noop_qdisc; |
@@ -1452,8 +1451,7 @@ hfsc_init_qdisc(struct Qdisc *sch, struct nlattr *opt) | |||
1452 | q->root.cl_common.classid = sch->handle; | 1451 | q->root.cl_common.classid = sch->handle; |
1453 | q->root.refcnt = 1; | 1452 | q->root.refcnt = 1; |
1454 | q->root.sched = q; | 1453 | q->root.sched = q; |
1455 | q->root.qdisc = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue, | 1454 | q->root.qdisc = qdisc_create_dflt(sch->dev_queue, &pfifo_qdisc_ops, |
1456 | &pfifo_qdisc_ops, | ||
1457 | sch->handle); | 1455 | sch->handle); |
1458 | if (q->root.qdisc == NULL) | 1456 | if (q->root.qdisc == NULL) |
1459 | q->root.qdisc = &noop_qdisc; | 1457 | q->root.qdisc = &noop_qdisc; |