diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-04 02:33:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 02:33:43 -0500 |
commit | 6cc118bd506ae8c6436f507b838a0e1f6185fec2 (patch) | |
tree | 64c06a8f0c6c5fded8aa4298f5ddb2bfd15cccc0 /net/ipv6/route.c | |
parent | dcabb819a6eced95ef531b001e663d0d592c8d9f (diff) |
[NETNS][IPV6] rt6_stats - dynamically allocate the routes statistics
This patch allocates the rt6_stats struct dynamically when the fib6 is
initialized. That provides the ability to create several instances of
this structure for the network namespaces.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Benjamin Thery <benjamin.thery@bull.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/route.c')
-rw-r--r-- | net/ipv6/route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index b13eb0111270..370f2aef6909 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2354,11 +2354,11 @@ static const struct file_operations ipv6_route_proc_fops = { | |||
2354 | static int rt6_stats_seq_show(struct seq_file *seq, void *v) | 2354 | static int rt6_stats_seq_show(struct seq_file *seq, void *v) |
2355 | { | 2355 | { |
2356 | seq_printf(seq, "%04x %04x %04x %04x %04x %04x %04x\n", | 2356 | seq_printf(seq, "%04x %04x %04x %04x %04x %04x %04x\n", |
2357 | rt6_stats.fib_nodes, rt6_stats.fib_route_nodes, | 2357 | rt6_stats->fib_nodes, rt6_stats->fib_route_nodes, |
2358 | rt6_stats.fib_rt_alloc, rt6_stats.fib_rt_entries, | 2358 | rt6_stats->fib_rt_alloc, rt6_stats->fib_rt_entries, |
2359 | rt6_stats.fib_rt_cache, | 2359 | rt6_stats->fib_rt_cache, |
2360 | atomic_read(&ip6_dst_ops.entries), | 2360 | atomic_read(&ip6_dst_ops.entries), |
2361 | rt6_stats.fib_discarded_routes); | 2361 | rt6_stats->fib_discarded_routes); |
2362 | 2362 | ||
2363 | return 0; | 2363 | return 0; |
2364 | } | 2364 | } |