diff options
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r-- | net/ipv4/proc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index adfb75340275..aacfce0d7d82 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -54,7 +54,6 @@ | |||
54 | static int sockstat_seq_show(struct seq_file *seq, void *v) | 54 | static int sockstat_seq_show(struct seq_file *seq, void *v) |
55 | { | 55 | { |
56 | struct net *net = seq->private; | 56 | struct net *net = seq->private; |
57 | unsigned int frag_mem; | ||
58 | int orphans, sockets; | 57 | int orphans, sockets; |
59 | 58 | ||
60 | orphans = percpu_counter_sum_positive(&tcp_orphan_count); | 59 | orphans = percpu_counter_sum_positive(&tcp_orphan_count); |
@@ -72,8 +71,9 @@ static int sockstat_seq_show(struct seq_file *seq, void *v) | |||
72 | sock_prot_inuse_get(net, &udplite_prot)); | 71 | sock_prot_inuse_get(net, &udplite_prot)); |
73 | seq_printf(seq, "RAW: inuse %d\n", | 72 | seq_printf(seq, "RAW: inuse %d\n", |
74 | sock_prot_inuse_get(net, &raw_prot)); | 73 | sock_prot_inuse_get(net, &raw_prot)); |
75 | frag_mem = ip_frag_mem(net); | 74 | seq_printf(seq, "FRAG: inuse %u memory %u\n", |
76 | seq_printf(seq, "FRAG: inuse %u memory %u\n", !!frag_mem, frag_mem); | 75 | atomic_read(&net->ipv4.frags.rhashtable.nelems), |
76 | frag_mem_limit(&net->ipv4.frags)); | ||
77 | return 0; | 77 | return 0; |
78 | } | 78 | } |
79 | 79 | ||