summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-01-13 13:10:17 +0000
committerJakub Kicinski <kuba@kernel.org>2026-01-15 19:52:02 -0800
commit2db009e4c8d6dc76d98fa691a35586f98506fc63 (patch)
tree33e93ba94cad42027005bc127bace821808dc5a8 /net
parentb1b77c82cec16668571b0d2587d19d4204d432e0 (diff)
net: minor __alloc_skb() optimization
We can directly call __finalize_skb_around() instead of __build_skb_around() because @size is not zero. Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20260113131017.2310584-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/core/skbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 3d736c64bd87..c29677f7857c 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -714,7 +714,7 @@ fallback:
prefetchw(data + SKB_WITH_OVERHEAD(size));
skbuff_clear(skb);
- __build_skb_around(skb, data, size);
+ __finalize_skb_around(skb, data, size);
skb->pfmemalloc = pfmemalloc;
if (flags & SKB_ALLOC_FCLONE) {