diff options
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r-- | net/ipv6/proc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c index 6e57028d2e91..8befeb91e071 100644 --- a/net/ipv6/proc.c +++ b/net/ipv6/proc.c | |||
@@ -38,7 +38,6 @@ | |||
38 | static int sockstat6_seq_show(struct seq_file *seq, void *v) | 38 | static int sockstat6_seq_show(struct seq_file *seq, void *v) |
39 | { | 39 | { |
40 | struct net *net = seq->private; | 40 | struct net *net = seq->private; |
41 | unsigned int frag_mem = ip6_frag_mem(net); | ||
42 | 41 | ||
43 | seq_printf(seq, "TCP6: inuse %d\n", | 42 | seq_printf(seq, "TCP6: inuse %d\n", |
44 | sock_prot_inuse_get(net, &tcpv6_prot)); | 43 | sock_prot_inuse_get(net, &tcpv6_prot)); |
@@ -48,7 +47,9 @@ static int sockstat6_seq_show(struct seq_file *seq, void *v) | |||
48 | sock_prot_inuse_get(net, &udplitev6_prot)); | 47 | sock_prot_inuse_get(net, &udplitev6_prot)); |
49 | seq_printf(seq, "RAW6: inuse %d\n", | 48 | seq_printf(seq, "RAW6: inuse %d\n", |
50 | sock_prot_inuse_get(net, &rawv6_prot)); | 49 | sock_prot_inuse_get(net, &rawv6_prot)); |
51 | seq_printf(seq, "FRAG6: inuse %u memory %u\n", !!frag_mem, frag_mem); | 50 | seq_printf(seq, "FRAG6: inuse %u memory %u\n", |
51 | atomic_read(&net->ipv6.frags.rhashtable.nelems), | ||
52 | frag_mem_limit(&net->ipv6.frags)); | ||
52 | return 0; | 53 | return 0; |
53 | } | 54 | } |
54 | 55 | ||