]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: move tcp_stream_memory_free() to tcp.c
authorEric Dumazet <edumazet@google.com>
Thu, 22 Jan 2026 09:02:27 +0000 (09:02 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Jan 2026 18:20:03 +0000 (10:20 -0800)
commit1685e1770856f9ce6e1f13600ff82bbad6a81d87
tree132d19598f602a8767d4a0d2ad345ab61dfc3e12
parent339e7f59858927ab5ed24e6902e940b077db3a60
tcp: move tcp_stream_memory_free() to tcp.c

Moving tcp_stream_memory_free() to tcp.c allows the compiler
to (auto)inline it from tcp_poll() and tcp_sendmsg_locked()
for better performance.

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/0 grow/shrink: 2/0 up/down: 118/0 (118)
Function                                     old     new   delta
tcp_poll                                     840     923     +83
tcp_sendmsg_locked                          4217    4252     +35
Total: Before=22573095, After=22573213, chg +0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Neal Cardwell <ncardwell@google.com>
Link: https://patch.msgid.link/20260122090228.1678207-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c