]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: use __skb_push() in __tcp_transmit_skb()
authorEric Dumazet <edumazet@google.com>
Tue, 3 Feb 2026 04:42:26 +0000 (04:42 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Feb 2026 04:36:27 +0000 (20:36 -0800)
commit59b5e7f47c7c956a5e88a00953f351b4fbfa360d
tree2902e8d52e7f50e3d73594a498c23d405a774995
parent333225e1e9ead7b06e5363389403bdac72ba3046
tcp: use __skb_push() in __tcp_transmit_skb()

We trust MAX_TCP_HEADER to be large enough.

Using the inlined version of skb_push() trades 8 bytes
of text for better performance of TCP TX fast path.

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/0 grow/shrink: 1/0 up/down: 8/0 (8)
Function                                     old     new   delta
__tcp_transmit_skb                          3181    3189      +8
Total: Before=24896035, After=24896043, chg +0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260203044226.3489941-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_output.c