diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-04 08:33:43 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 08:33:43 +0100 |
commit | 6cc118bd506ae8c6436f507b838a0e1f6185fec2 (patch) | |
tree | 64c06a8f0c6c5fded8aa4298f5ddb2bfd15cccc0 /net/ipv6/route.c | |
parent | [NETNS][IPV6] fib6_rules - handle several network namespaces (diff) | |
download | linux-6cc118bd506ae8c6436f507b838a0e1f6185fec2.tar.xz linux-6cc118bd506ae8c6436f507b838a0e1f6185fec2.zip |
[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 '')
-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 = { static int rt6_stats_seq_show(struct seq_file *seq, void *v) { seq_printf(seq, "%04x %04x %04x %04x %04x %04x %04x\n", - rt6_stats.fib_nodes, rt6_stats.fib_route_nodes, - rt6_stats.fib_rt_alloc, rt6_stats.fib_rt_entries, - rt6_stats.fib_rt_cache, + rt6_stats->fib_nodes, rt6_stats->fib_route_nodes, + rt6_stats->fib_rt_alloc, rt6_stats->fib_rt_entries, + rt6_stats->fib_rt_cache, atomic_read(&ip6_dst_ops.entries), - rt6_stats.fib_discarded_routes); + rt6_stats->fib_discarded_routes); return 0; } |