diff options
author | Florian Westphal <fw@strlen.de> | 2016-09-17 18:57:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-19 01:47:18 -0400 |
commit | ec323368793b8570c02e723127611a8d906a9b3f (patch) | |
tree | ee315766586d253172ec75a7591fba9326a08745 /net | |
parent | 97d0678f913369af0dc8b510a682a641654ab743 (diff) |
sched: remove qdisc arg from __qdisc_dequeue_head
Moves qdisc stat accouting to qdisc_dequeue_head.
The only direct caller of the __qdisc_dequeue_head version open-codes
this now.
This allows us to later use __qdisc_dequeue_head as a replacement
of __skb_dequeue() (which operates on sk_buff_head list).
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_generic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 5e63bf638350..73877d9c2bcb 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -506,7 +506,12 @@ static struct sk_buff *pfifo_fast_dequeue(struct Qdisc *qdisc) | |||
506 | 506 | ||
507 | if (likely(band >= 0)) { | 507 | if (likely(band >= 0)) { |
508 | struct sk_buff_head *list = band2list(priv, band); | 508 | struct sk_buff_head *list = band2list(priv, band); |
509 | struct sk_buff *skb = __qdisc_dequeue_head(qdisc, list); | 509 | struct sk_buff *skb = __qdisc_dequeue_head(list); |
510 | |||
511 | if (likely(skb != NULL)) { | ||
512 | qdisc_qstats_backlog_dec(qdisc, skb); | ||
513 | qdisc_bstats_update(qdisc, skb); | ||
514 | } | ||
510 | 515 | ||
511 | qdisc->q.qlen--; | 516 | qdisc->q.qlen--; |
512 | if (skb_queue_empty(list)) | 517 | if (skb_queue_empty(list)) |