projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1b77c8
)
net: minor __alloc_skb() optimization
author
Eric Dumazet
<edumazet@google.com>
Tue, 13 Jan 2026 13:10:17 +0000
(13:10 +0000)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 16 Jan 2026 03:52:02 +0000
(19:52 -0800)
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>
net/core/skbuff.c
patch
|
blob
|
history
diff --git
a/net/core/skbuff.c
b/net/core/skbuff.c
index
3d736c6
..
c29677f
100644
(file)
--- 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) {