]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tcp: move tcp_rate_skb_sent() to tcp_output.c
authorEric Dumazet <edumazet@google.com>
Wed, 14 Jan 2026 16:51:09 +0000 (16:51 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 17 Jan 2026 23:43:16 +0000 (15:43 -0800)
commitf10ab9d3a7ea06ef7d6aa2d3c527f8cf728bbdee
tree5f33df23e5bcd4269c76bac0d17aff0a22df0992
parent799759e610d32de37f65cb109f2801b5f099b13d
tcp: move tcp_rate_skb_sent() to tcp_output.c

It is only called from __tcp_transmit_skb() and __tcp_retransmit_skb().

Move it in tcp_output.c and make it static.

clang compiler is now able to inline it from __tcp_transmit_skb().

gcc compiler inlines it in the two callers, which is also fine.

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