aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index 5a22fec4eadd..333525422f45 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1045,7 +1045,7 @@ hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
1045 1045
1046 if (tca[TCA_RATE]) 1046 if (tca[TCA_RATE])
1047 gen_replace_estimator(&cl->bstats, &cl->rate_est, 1047 gen_replace_estimator(&cl->bstats, &cl->rate_est,
1048 &sch->dev->queue_lock, 1048 &qdisc_dev(sch)->queue_lock,
1049 tca[TCA_RATE]); 1049 tca[TCA_RATE]);
1050 return 0; 1050 return 0;
1051 } 1051 }
@@ -1083,7 +1083,7 @@ 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, sch->dev_queue, 1086 cl->qdisc = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue,
1087 &pfifo_qdisc_ops, classid); 1087 &pfifo_qdisc_ops, classid);
1088 if (cl->qdisc == NULL) 1088 if (cl->qdisc == NULL)
1089 cl->qdisc = &noop_qdisc; 1089 cl->qdisc = &noop_qdisc;
@@ -1104,7 +1104,7 @@ hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
1104 1104
1105 if (tca[TCA_RATE]) 1105 if (tca[TCA_RATE])
1106 gen_new_estimator(&cl->bstats, &cl->rate_est, 1106 gen_new_estimator(&cl->bstats, &cl->rate_est,
1107 &sch->dev->queue_lock, tca[TCA_RATE]); 1107 &qdisc_dev(sch)->queue_lock, tca[TCA_RATE]);
1108 *arg = (unsigned long)cl; 1108 *arg = (unsigned long)cl;
1109 return 0; 1109 return 0;
1110} 1110}
@@ -1202,7 +1202,7 @@ hfsc_graft_class(struct Qdisc *sch, unsigned long arg, struct Qdisc *new,
1202 if (cl->level > 0) 1202 if (cl->level > 0)
1203 return -EINVAL; 1203 return -EINVAL;
1204 if (new == NULL) { 1204 if (new == NULL) {
1205 new = qdisc_create_dflt(sch->dev, sch->dev_queue, 1205 new = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue,
1206 &pfifo_qdisc_ops, 1206 &pfifo_qdisc_ops,
1207 cl->cl_common.classid); 1207 cl->cl_common.classid);
1208 if (new == NULL) 1208 if (new == NULL)
@@ -1445,7 +1445,7 @@ hfsc_init_qdisc(struct Qdisc *sch, struct nlattr *opt)
1445 q->root.cl_common.classid = sch->handle; 1445 q->root.cl_common.classid = sch->handle;
1446 q->root.refcnt = 1; 1446 q->root.refcnt = 1;
1447 q->root.sched = q; 1447 q->root.sched = q;
1448 q->root.qdisc = qdisc_create_dflt(sch->dev, sch->dev_queue, 1448 q->root.qdisc = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue,
1449 &pfifo_qdisc_ops, 1449 &pfifo_qdisc_ops,
1450 sch->handle); 1450 sch->handle);
1451 if (q->root.qdisc == NULL) 1451 if (q->root.qdisc == NULL)