|
@@ -38,7 +38,6 @@
|
|
|
static int sockstat6_seq_show(struct seq_file *seq, void *v)
|
|
|
{
|
|
|
struct net *net = seq->private;
|
|
|
- unsigned int frag_mem = ip6_frag_mem(net);
|
|
|
|
|
|
seq_printf(seq, "TCP6: inuse %d\n",
|
|
|
sock_prot_inuse_get(net, &tcpv6_prot));
|
|
@@ -48,7 +47,9 @@ static int sockstat6_seq_show(struct seq_file *seq, void *v)
|
|
|
sock_prot_inuse_get(net, &udplitev6_prot));
|
|
|
seq_printf(seq, "RAW6: inuse %d\n",
|
|
|
sock_prot_inuse_get(net, &rawv6_prot));
|
|
|
- seq_printf(seq, "FRAG6: inuse %u memory %u\n", !!frag_mem, frag_mem);
|
|
|
+ seq_printf(seq, "FRAG6: inuse %u memory %u\n",
|
|
|
+ atomic_read(&net->ipv6.frags.rhashtable.nelems),
|
|
|
+ frag_mem_limit(&net->ipv6.frags));
|
|
|
return 0;
|
|
|
}
|
|
|
|