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 /include | |
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 'include')
-rw-r--r-- | include/net/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 5dc8164e5d3b..9a00f35ae773 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -611,7 +611,7 @@ extern void ipv6_misc_proc_exit(void); | |||
611 | extern int snmp6_register_dev(struct inet6_dev *idev); | 611 | extern int snmp6_register_dev(struct inet6_dev *idev); |
612 | extern int snmp6_unregister_dev(struct inet6_dev *idev); | 612 | extern int snmp6_unregister_dev(struct inet6_dev *idev); |
613 | 613 | ||
614 | extern struct rt6_statistics rt6_stats; | 614 | extern struct rt6_statistics *rt6_stats; |
615 | #else | 615 | #else |
616 | static inline int snmp6_register_dev(struct inet6_dev *idev) | 616 | static inline int snmp6_register_dev(struct inet6_dev *idev) |
617 | { | 617 | { |