net_sched: sch_fq: do not call fq_peek() twice per packet
authorEric Dumazet <edumazet@google.com>
Sun, 3 May 2020 02:54:21 +0000 (19:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:50:45 +0000 (15:50 -0700)
commitc288b0ca86a0a49ad450cf2d76a9a70c2ca9e43f
tree7e8a7d42bd7420c3b372becdf0173a5e78355c4b
parent82a0aa53b520edf50e08bad347d87d898de414eb
net_sched: sch_fq: do not call fq_peek() twice per packet

This refactors the code to not call fq_peek() from fq_dequeue_head()
since the caller can provide the skb.

Also rename fq_dequeue_head() to fq_dequeue_skb() because 'head' is
a bit vague, given the skb could come from t_root rb-tree.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c