diff options
author | Eric Dumazet <edumazet@google.com> | 2020-05-03 04:54:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-04 00:50:45 +0200 |
commit | 348e289b0f23451d1c47b940e759f0f3a0c5756e (patch) | |
tree | 3ae9f7a61921b9c9c53f40395b15c0156ae817e2 /net/sched | |
parent | net_sched: sch_fq: do not call fq_peek() twice per packet (diff) | |
download | linux-348e289b0f23451d1c47b940e759f0f3a0c5756e.tar.xz linux-348e289b0f23451d1c47b940e759f0f3a0c5756e.zip |
net_sched: sch_fq: perform a prefetch() earlier
The prefetch() done in fq_dequeue() can be done a bit earlier
after the refactoring of the code done in the prior patch.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_fq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_fq.c b/net/sched/sch_fq.c index 567df8fcaf70..4f0104243cc2 100644 --- a/net/sched/sch_fq.c +++ b/net/sched/sch_fq.c @@ -546,6 +546,7 @@ begin: fq_flow_set_throttled(q, f); goto begin; } + prefetch(&skb->end); if ((s64)(now - time_next_packet - q->ce_threshold) > 0) { INET_ECN_set_ce(skb); q->stat_ce_mark++; @@ -562,7 +563,6 @@ begin: } goto begin; } - prefetch(&skb->end); plen = qdisc_pkt_len(skb); f->credit -= plen; |