]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: inline skb_add_rx_frag_netmem()
authorEric Dumazet <edumazet@google.com>
Thu, 26 Feb 2026 04:12:13 +0000 (04:12 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Feb 2026 03:20:34 +0000 (19:20 -0800)
commit6466441a5ecd1c1168264e4c322bae455579b156
treee2b8d3dfdda0975440d8197a0e5ca1d9c7a28f00
parent9ff2d2a9837015ff4b3579b028aeae8c180aa8d3
net: inline skb_add_rx_frag_netmem()

This critical helper (via skb_add_rx_frag()) is mostly used
from drivers rx fast path.

It is time to inline it, this actually saves space in vmlinux:

size vmlinux.old vmlinux
   text    data     bss     dec     hex filename
37350766        23092977        4846992 65290735        3e441ef vmlinux.old
37350600        23092977        4846992 65290569        3e44149 vmlinux

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260226041213.1892561-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
net/core/skbuff.c