net_sched: sch_fq: perform a prefetch() earlier
authorEric Dumazet <edumazet@google.com>
Sun, 3 May 2020 02:54:22 +0000 (19:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 May 2020 22:50:45 +0000 (15:50 -0700)
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>
net/sched/sch_fq.c

index 567df8fcaf703e69ea6b1adaa114740239c9d30b..4f0104243cc236e3626f2b527dbab90d408e6c40 100644 (file)
@@ -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;