diff options
author | Eric Dumazet <edumazet@google.com> | 2017-11-07 00:29:28 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-10 14:34:58 +0900 |
commit | 356d1833b638bd465672aefeb71def3ab93fc17d (patch) | |
tree | 68354249261e8de8d367bfc21bb2969ecb9053d6 /include/net/netns/ipv4.h | |
parent | a3dcaf17ee54f1d01d22cc2b22cab0b4f60d78cf (diff) | |
download | linux-stable-356d1833b638bd465672aefeb71def3ab93fc17d.tar.gz linux-stable-356d1833b638bd465672aefeb71def3ab93fc17d.tar.bz2 linux-stable-356d1833b638bd465672aefeb71def3ab93fc17d.zip |
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/netns/ipv4.h')
-rw-r--r-- | include/net/netns/ipv4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h index 379550f8124a..5e12975fc658 100644 --- a/include/net/netns/ipv4.h +++ b/include/net/netns/ipv4.h @@ -155,6 +155,8 @@ struct netns_ipv4 { int sysctl_tcp_invalid_ratelimit; int sysctl_tcp_pacing_ss_ratio; int sysctl_tcp_pacing_ca_ratio; + int sysctl_tcp_wmem[3]; + int sysctl_tcp_rmem[3]; struct inet_timewait_death_row tcp_death_row; int sysctl_max_syn_backlog; int sysctl_tcp_fastopen; |