diff options
author | Eric Dumazet <edumazet@google.com> | 2017-11-07 03:29:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-10 00:34:58 -0500 |
commit | 356d1833b638bd465672aefeb71def3ab93fc17d (patch) | |
tree | 68354249261e8de8d367bfc21bb2969ecb9053d6 /include/net/tcp.h | |
parent | a3dcaf17ee54f1d01d22cc2b22cab0b4f60d78cf (diff) |
tcp: Namespace-ify sysctl_tcp_rmem and sysctl_tcp_wmem
Note that when a new netns is created, it inherits its
sysctl_tcp_rmem and sysctl_tcp_wmem from initial netns.
This change is needed so that we can refine TCP rcvbuf autotuning,
to take RTT into consideration.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index babfd4da1515..2f2c69ad31b2 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -242,8 +242,6 @@ void tcp_time_wait(struct sock *sk, int state, int timeo); | |||
242 | /* sysctl variables for tcp */ | 242 | /* sysctl variables for tcp */ |
243 | extern int sysctl_tcp_max_orphans; | 243 | extern int sysctl_tcp_max_orphans; |
244 | extern long sysctl_tcp_mem[3]; | 244 | extern long sysctl_tcp_mem[3]; |
245 | extern int sysctl_tcp_wmem[3]; | ||
246 | extern int sysctl_tcp_rmem[3]; | ||
247 | 245 | ||
248 | #define TCP_RACK_LOSS_DETECTION 0x1 /* Use RACK to detect losses */ | 246 | #define TCP_RACK_LOSS_DETECTION 0x1 /* Use RACK to detect losses */ |
249 | #define TCP_RACK_STATIC_REO_WND 0x2 /* Use static RACK reo wnd */ | 247 | #define TCP_RACK_STATIC_REO_WND 0x2 /* Use static RACK reo wnd */ |