]> git.ipfire.org Git - thirdparty/linux.git/commit
net: add prefetch() in skb_defer_free_flush()
authorEric Dumazet <edumazet@google.com>
Thu, 6 Nov 2025 08:55:00 +0000 (08:55 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Nov 2025 03:00:16 +0000 (19:00 -0800)
commitfd9557c3606bb683c01a6c7627e915b539b9a8df
treeee565f803ce1408d888e258a43cea24f212fef91
parent01c87d7f48b4f9b8be0950ed4de5d345632bd564
net: add prefetch() in skb_defer_free_flush()

skb_defer_free_flush() is becoming more important these days.

Add a prefetch operation to reduce latency a bit on some
platforms like AMD EPYC 7B12.

On more recent cpus, a stall happens when reading skb_shinfo().
Avoiding it will require a more elaborate strategy.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://patch.msgid.link/20251106085500.2438951-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c