]> Gentwo Git Trees - linux/.git/commit
net: prefech skb->priority in __dev_xmit_skb()
authorEric Dumazet <edumazet@google.com>
Fri, 21 Nov 2025 08:32:52 +0000 (08:32 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Nov 2025 15:10:32 +0000 (16:10 +0100)
commitb2e9821cff6c3c9ac107fce5327070f4462bf8a7
tree87ea18a757acf651c8394ca6b90c80963e009a83
parent2f9babc04d74cbf984f0cb5b6e20bd78fdf32997
net: prefech skb->priority in __dev_xmit_skb()

Most qdiscs need to read skb->priority at enqueue time().

In commit 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")
I added a prefetch(next), lets add another one for the second
half of skb.

Note that skb->priority and skb->hash share a common cache line,
so this patch helps qdiscs needing both fields.

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