mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
a3dcaf17ee
commit
356d1833b6
8 changed files with 47 additions and 43 deletions
|
@ -1940,8 +1940,8 @@ struct proto tcpv6_prot = {
|
|||
.memory_pressure = &tcp_memory_pressure,
|
||||
.orphan_count = &tcp_orphan_count,
|
||||
.sysctl_mem = sysctl_tcp_mem,
|
||||
.sysctl_wmem = sysctl_tcp_wmem,
|
||||
.sysctl_rmem = sysctl_tcp_rmem,
|
||||
.sysctl_wmem_offset = offsetof(struct net, ipv4.sysctl_tcp_wmem),
|
||||
.sysctl_rmem_offset = offsetof(struct net, ipv4.sysctl_tcp_rmem),
|
||||
.max_header = MAX_TCP_HEADER,
|
||||
.obj_size = sizeof(struct tcp6_sock),
|
||||
.slab_flags = SLAB_TYPESAFE_BY_RCU,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue