diff options
author | Haishuang Yan | 2016-12-28 10:52:32 +0100 |
---|---|---|
committer | David S. Miller | 2016-12-29 17:38:31 +0100 |
commit | 1946e672c173559155a3e210fe95dbf8b7b8ddf7 (patch) | |
tree | 0d794dc28150aac130c2e6dd0024cb3a4a5ec594 /net/ipv4/proc.c | |
parent | net: Use kmemdup instead of kmalloc and memcpy (diff) | |
download | kernel-qcow2-linux-1946e672c173559155a3e210fe95dbf8b7b8ddf7.tar.gz kernel-qcow2-linux-1946e672c173559155a3e210fe95dbf8b7b8ddf7.tar.xz kernel-qcow2-linux-1946e672c173559155a3e210fe95dbf8b7b8ddf7.zip |
ipv4: Namespaceify tcp_tw_recycle and tcp_max_tw_buckets knob
Different namespace application might require fast recycling
TIME-WAIT sockets independently of the host.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r-- | net/ipv4/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 7143ca1a6af9..0247ca032232 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -65,7 +65,7 @@ static int sockstat_seq_show(struct seq_file *seq, void *v) socket_seq_show(seq); seq_printf(seq, "TCP: inuse %d orphan %d tw %d alloc %d mem %ld\n", sock_prot_inuse_get(net, &tcp_prot), orphans, - atomic_read(&tcp_death_row.tw_count), sockets, + atomic_read(&net->ipv4.tcp_death_row.tw_count), sockets, proto_memory_allocated(&tcp_prot)); seq_printf(seq, "UDP: inuse %d mem %ld\n", sock_prot_inuse_get(net, &udp_prot), |