mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
97d0678f91
commit
ec32336879
2 changed files with 14 additions and 8 deletions
|
|
@ -506,7 +506,12 @@ static struct sk_buff *pfifo_fast_dequeue(struct Qdisc *qdisc)
|
|||
|
||||
if (likely(band >= 0)) {
|
||||
struct sk_buff_head *list = band2list(priv, band);
|
||||
struct sk_buff *skb = __qdisc_dequeue_head(qdisc, list);
|
||||
struct sk_buff *skb = __qdisc_dequeue_head(list);
|
||||
|
||||
if (likely(skb != NULL)) {
|
||||
qdisc_qstats_backlog_dec(qdisc, skb);
|
||||
qdisc_bstats_update(qdisc, skb);
|
||||
}
|
||||
|
||||
qdisc->q.qlen--;
|
||||
if (skb_queue_empty(list))
|
||||
|
|
|
|||
Loading…
Reference in a new issue