aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_pie.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sched/sch_pie.c')
-rw-r--r--net/sched/sch_pie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c
index a570b0bb254c..5c3a99d6aa82 100644
--- a/net/sched/sch_pie.c
+++ b/net/sched/sch_pie.c
@@ -231,7 +231,7 @@ static int pie_change(struct Qdisc *sch, struct nlattr *opt)
231 /* Drop excess packets if new limit is lower */ 231 /* Drop excess packets if new limit is lower */
232 qlen = sch->q.qlen; 232 qlen = sch->q.qlen;
233 while (sch->q.qlen > sch->limit) { 233 while (sch->q.qlen > sch->limit) {
234 struct sk_buff *skb = __skb_dequeue(&sch->q); 234 struct sk_buff *skb = __qdisc_dequeue_head(&sch->q);
235 235
236 dropped += qdisc_pkt_len(skb); 236 dropped += qdisc_pkt_len(skb);
237 qdisc_qstats_backlog_dec(sch, skb); 237 qdisc_qstats_backlog_dec(sch, skb);
@@ -511,7 +511,7 @@ static int pie_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
511static struct sk_buff *pie_qdisc_dequeue(struct Qdisc *sch) 511static struct sk_buff *pie_qdisc_dequeue(struct Qdisc *sch)
512{ 512{
513 struct sk_buff *skb; 513 struct sk_buff *skb;
514 skb = __qdisc_dequeue_head(sch, &sch->q); 514 skb = qdisc_dequeue_head(sch);
515 515
516 if (!skb) 516 if (!skb)
517 return NULL; 517 return NULL;