diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-08 05:35:07 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-10-08 05:35:07 -0400 |
commit | 0d55af8791bfb42e04cc456b348910582f230343 (patch) | |
tree | 619c5a6a46691ca90237d6ad239a4fb4391e61b9 /net/ipv4 | |
parent | 6058fa6bb96a5b6145cba10c5171f09c2783ca69 (diff) |
netfilter: netns nf_conntrack: per-netns statistics
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index b2940836d107..fdc85b370783 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -294,7 +294,7 @@ static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos) | |||
294 | if (!cpu_possible(cpu)) | 294 | if (!cpu_possible(cpu)) |
295 | continue; | 295 | continue; |
296 | *pos = cpu+1; | 296 | *pos = cpu+1; |
297 | return &per_cpu(nf_conntrack_stat, cpu); | 297 | return per_cpu_ptr(init_net.ct.stat, cpu); |
298 | } | 298 | } |
299 | 299 | ||
300 | return NULL; | 300 | return NULL; |
@@ -308,7 +308,7 @@ static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
308 | if (!cpu_possible(cpu)) | 308 | if (!cpu_possible(cpu)) |
309 | continue; | 309 | continue; |
310 | *pos = cpu+1; | 310 | *pos = cpu+1; |
311 | return &per_cpu(nf_conntrack_stat, cpu); | 311 | return per_cpu_ptr(init_net.ct.stat, cpu); |
312 | } | 312 | } |
313 | 313 | ||
314 | return NULL; | 314 | return NULL; |