Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eric Dumazet and committed by
Jakub Kicinski
2db009e4 b1b77c82

+1 -1
+1 -1
net/core/skbuff.c
··· 714 714 prefetchw(data + SKB_WITH_OVERHEAD(size)); 715 715 716 716 skbuff_clear(skb); 717 - __build_skb_around(skb, data, size); 717 + __finalize_skb_around(skb, data, size); 718 718 skb->pfmemalloc = pfmemalloc; 719 719 720 720 if (flags & SKB_ALLOC_FCLONE) {