tcp: tcp_init_buffer_space can be static
Subsystems (3)
PATCH 1/1 tcp: tcp_init_buffer_space can be static
As of commit 98fa6271cfcb
("tcp: refactor setting the initial congestion window") this is called only from tcp_input.c, so it can be static.
Signed-off-by Florian Westphal <[email protected]>
--- include/net/tcp.h | 1 - net/ipv4/tcp_input.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/net/tcp.h +0 -1
@@ -662,7 +662,6 @@ void tcp_initialize_rcv_mss(struct sock *sk);int tcp_mtu_to_mss (struct sock *sk,int pmtu);int tcp_mss_to_mtu (struct sock *sk,int mss);void tcp_mtup_init (struct sock *sk); -void tcp_init_buffer_space (struct sock *sk);static inline void tcp_bound_rto (const struct sock *sk) {
net/ipv4/tcp_input.c +1 -1
@@ -437,7 +437,7 @@ static void tcp_grow_window(struct sock *sk, const struct sk_buff *skb)/* 3. Try to fixup all. It is made immediately after connection enters * established state. */ -void tcp_init_buffer_space (struct sock *sk) +static void tcp_init_buffer_space (struct sock *sk) {int tcp_app_win =sock_net (sk)->ipv4.sysctl_tcp_app_win;struct tcp_sock *tp =tcp_sk (sk);
Signature · 1 line
2.26.2
Quoted 5 lines · Florian Westphal
As of commit
98fa6271cfcb
("tcp: refactor setting the initial congestion window") this is called only fromtcp_input.c, so it can be static.Signed-off-by Florian Westphal <[email protected]>
Reviewed-by Eric Dumazet <[email protected]>
From: Florian Westphal <[email protected]>
Date: Fri, 29 May 2020 00:01:52 +0200
Quoted 5 lines
As of commit
98fa6271cfcb
("tcp: refactor setting the initial congestion window") this is called only fromtcp_input.c, so it can be static.Signed-off-by Florian Westphal <[email protected]>
Applied, thanks Florian.