diff options
Diffstat (limited to 'net/sched/sch_codel.c')
-rw-r--r-- | net/sched/sch_codel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_codel.c b/net/sched/sch_codel.c index 4002df3c7d9f..5bfa79ee657c 100644 --- a/net/sched/sch_codel.c +++ b/net/sched/sch_codel.c | |||
@@ -69,7 +69,7 @@ struct codel_sched_data { | |||
69 | static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx) | 69 | static struct sk_buff *dequeue_func(struct codel_vars *vars, void *ctx) |
70 | { | 70 | { |
71 | struct Qdisc *sch = ctx; | 71 | struct Qdisc *sch = ctx; |
72 | struct sk_buff *skb = __skb_dequeue(&sch->q); | 72 | struct sk_buff *skb = __qdisc_dequeue_head(&sch->q); |
73 | 73 | ||
74 | if (skb) | 74 | if (skb) |
75 | sch->qstats.backlog -= qdisc_pkt_len(skb); | 75 | sch->qstats.backlog -= qdisc_pkt_len(skb); |
@@ -172,7 +172,7 @@ static int codel_change(struct Qdisc *sch, struct nlattr *opt) | |||
172 | 172 | ||
173 | qlen = sch->q.qlen; | 173 | qlen = sch->q.qlen; |
174 | while (sch->q.qlen > sch->limit) { | 174 | while (sch->q.qlen > sch->limit) { |
175 | struct sk_buff *skb = __skb_dequeue(&sch->q); | 175 | struct sk_buff *skb = __qdisc_dequeue_head(&sch->q); |
176 | 176 | ||
177 | dropped += qdisc_pkt_len(skb); | 177 | dropped += qdisc_pkt_len(skb); |
178 | qdisc_qstats_backlog_dec(sch, skb); | 178 | qdisc_qstats_backlog_dec(sch, skb); |