Thread (6 messages) 6 messages, 3 authors, 2026-01-23

Re: [PATCH net-next 1/2] tcp: move tcp_rate_gen to tcp_input.c

From: Neal Cardwell <ncardwell@google.com>
Date: 2026-01-21 16:16:59

On Wed, Jan 21, 2026 at 4:59 AM Eric Dumazet [off-list ref] wrote:
This function is called from one caller only, in TCP fast path.

Move it to tcp_input.c so that compiler can inline it.

$ scripts/bloat-o-meter -t vmlinux.old vmlinux.new
add/remove: 0/2 grow/shrink: 1/0 up/down: 226/-300 (-74)
Function                                     old     new   delta
tcp_ack                                     5405    5631    +226
__pfx_tcp_rate_gen                            16       -     -16
tcp_rate_gen                                 284       -    -284
Total: Before=22566536, After=22566462, chg -0.00%

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
Reviewed-by: Neal Cardwell <ncardwell@google.com>

Thanks, Eric!

neal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help