]> Gentwo Git Trees - linux/.git/commit
net_sched: sch_fq: prefetch one skb ahead in dequeue()
authorEric Dumazet <edumazet@google.com>
Fri, 21 Nov 2025 08:32:51 +0000 (08:32 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Nov 2025 15:10:32 +0000 (16:10 +0100)
commit2f9babc04d74cbf984f0cb5b6e20bd78fdf32997
treee1a94051f8deef64670cf7d5c5b8f072a6d01db4
parent3c1100f042c006cae6c241028cc4c69e1a70483f
net_sched: sch_fq: prefetch one skb ahead in dequeue()

prefetch the skb that we are likely to dequeue at the next dequeue().

Also call fq_dequeue_skb() a bit sooner in fq_dequeue().

This reduces the window between read of q.qlen and
changes of fields in the cache line that could be dirtied
by another cpu trying to queue a packet.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20251121083256.674562-10-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/sched/sch_fq.c