diff options
Diffstat (limited to 'net/sched/sch_fifo.c')
-rw-r--r-- | net/sched/sch_fifo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/sch_fifo.c b/net/sched/sch_fifo.c index 779eae85faf0..1d97fa42c902 100644 --- a/net/sched/sch_fifo.c +++ b/net/sched/sch_fifo.c | |||
@@ -48,10 +48,10 @@ static int fifo_init(struct Qdisc *sch, struct nlattr *opt) | |||
48 | struct fifo_sched_data *q = qdisc_priv(sch); | 48 | struct fifo_sched_data *q = qdisc_priv(sch); |
49 | 49 | ||
50 | if (opt == NULL) { | 50 | if (opt == NULL) { |
51 | u32 limit = sch->dev->tx_queue_len ? : 1; | 51 | u32 limit = qdisc_dev(sch)->tx_queue_len ? : 1; |
52 | 52 | ||
53 | if (sch->ops == &bfifo_qdisc_ops) | 53 | if (sch->ops == &bfifo_qdisc_ops) |
54 | limit *= sch->dev->mtu; | 54 | limit *= qdisc_dev(sch)->mtu; |
55 | 55 | ||
56 | q->limit = limit; | 56 | q->limit = limit; |
57 | } else { | 57 | } else { |
@@ -137,7 +137,7 @@ struct Qdisc *fifo_create_dflt(struct Qdisc *sch, struct Qdisc_ops *ops, | |||
137 | struct Qdisc *q; | 137 | struct Qdisc *q; |
138 | int err = -ENOMEM; | 138 | int err = -ENOMEM; |
139 | 139 | ||
140 | q = qdisc_create_dflt(sch->dev, sch->dev_queue, | 140 | q = qdisc_create_dflt(qdisc_dev(sch), sch->dev_queue, |
141 | ops, TC_H_MAKE(sch->handle, 1)); | 141 | ops, TC_H_MAKE(sch->handle, 1)); |
142 | if (q) { | 142 | if (q) { |
143 | err = fifo_set_limit(q, limit); | 143 | err = fifo_set_limit(q, limit); |