]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
tcp: tcp_init_buffer_space can be static
authorFlorian Westphal <fw@strlen.de>
Thu, 28 May 2020 22:01:52 +0000 (00:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 May 2020 00:31:10 +0000 (17:31 -0700)
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 <fw@strlen.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_input.c

index 66e4b8331850623515fade891a2e9feb79c49061..bca761ffa25ff5e5f49e364b014ab7b42467f0be 100644 (file)
@@ -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)
 {
index ad90102f5dfb4aefca5df30ba13c84e01193b9d8..83330a6cb24209cf6ac60d634245b7bc151ee6ac 100644 (file)
@@ -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);