]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: always inline __skb_incr_checksum_unnecessary()
authorEric Dumazet <edumazet@google.com>
Tue, 20 Jan 2026 16:49:01 +0000 (16:49 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Jan 2026 03:28:32 +0000 (19:28 -0800)
commit9bd6ff503077e03fdf3b1a0a55b1427759eb23ac
tree63a181a7a0a3597735a68e94ac64446bc3034ca1
parenta4674aa58be53921f2aba62e143cc338d6ab142c
net: always inline __skb_incr_checksum_unnecessary()

clang does not inline this helper in GRO fast path.

We can save space and cpu cycles.

$ scripts/bloat-o-meter -t vmlinux.0 vmlinux.1
add/remove: 0/2 grow/shrink: 2/0 up/down: 156/-218 (-62)
Function                                     old     new   delta
tcp6_gro_complete                            227     311     +84
tcp4_gro_complete                            325     397     +72
__pfx___skb_incr_checksum_unnecessary         32       -     -32
__skb_incr_checksum_unnecessary              186       -    -186
Total: Before=22592724, After=22592662, chg -0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260120164903.1912995-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h