]> git.ipfire.org Git - thirdparty/linux.git/commit
net: prefetch the next skb in napi_skb_cache_get()
authorJason Xing <kernelxing@tencent.com>
Tue, 18 Nov 2025 07:06:46 +0000 (15:06 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Nov 2025 04:29:25 +0000 (20:29 -0800)
commit5d7fc63ab84182f75d5e73e299ce0e7c9c20c092
tree04605effebde6df055d414f699255777996ec4d0
parent2d67b5c5c67f934c54a55e00ee291a8587c5b4fe
net: prefetch the next skb in napi_skb_cache_get()

After getting the current skb in napi_skb_cache_get(), the next skb in
cache is highly likely to be used soon, so prefetch would be helpful.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jason Xing <kernelxing@tencent.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://patch.msgid.link/20251118070646.61344-5-kerneljasonxing@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/skbuff.c