diff options
author | Eric Dumazet <edumazet@google.com> | 2018-03-31 15:58:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-31 23:25:39 -0400 |
commit | 6befe4a78b1553edb6eed3a78b4bcd9748526672 (patch) | |
tree | f53d1046d1145435a58c2d7d576e08d04250f849 /net/ipv6/proc.c | |
parent | 648700f76b03b7e8149d13cc2bdb3355035258a9 (diff) |
inet: frags: remove some helpers
Remove sum_frag_mem_limit(), ip_frag_mem() & ip6_frag_mem()
Also since we use rhashtable we can bring back the number of fragments
in "grep FRAG /proc/net/sockstat /proc/net/sockstat6" that was
removed in commit 434d305405ab ("inet: frag: don't account number
of fragment queues")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 | ||