diff options
author | Florian Westphal <fw@strlen.de> | 2016-09-17 18:57:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-19 01:47:18 -0400 |
commit | ed760cb8aae7c2b84c193d4a7637b0c9e752f07e (patch) | |
tree | cbff0f30ea3b3cb037384708e172893ae1efcf17 /net | |
parent | ec323368793b8570c02e723127611a8d906a9b3f (diff) |
sched: replace __skb_dequeue with __qdisc_dequeue_head
After previous patch these functions are identical.
Replace __skb_dequeue in qdiscs with __qdisc_dequeue_head.
Next patch will then make __qdisc_dequeue_head handle
single-linked list instead of strcut sk_buff_head argument.
Doesn't change generated code.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_codel.c | 4 | ||||
-rw-r--r-- | net/sched/sch_netem.c | 2 | ||||
-rw-r--r-- | net/sched/sch_pie.c | 2 |
3 files changed, 4 insertions, 4 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); |
diff --git a/net/sched/sch_netem.c b/net/sched/sch_netem.c index 1832d7732dbc..0a964b35f8c7 100644 --- a/net/sched/sch_netem.c +++ b/net/sched/sch_netem.c | |||
@@ -587,7 +587,7 @@ static struct sk_buff *netem_dequeue(struct Qdisc *sch) | |||
587 | struct rb_node *p; | 587 | struct rb_node *p; |
588 | 588 | ||
589 | tfifo_dequeue: | 589 | tfifo_dequeue: |
590 | skb = __skb_dequeue(&sch->q); | 590 | skb = __qdisc_dequeue_head(&sch->q); |
591 | if (skb) { | 591 | if (skb) { |
592 | qdisc_qstats_backlog_dec(sch, skb); | 592 | qdisc_qstats_backlog_dec(sch, skb); |
593 | deliver: | 593 | deliver: |
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c index d976d74b22d7..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); |