diff options
author | Daniel Lezcano <dlezcano@fr.ibm.com> | 2008-03-04 02:31:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-04 02:31:11 -0500 |
commit | 63152fc0de4dfe83da543bf133cef73d885a50fc (patch) | |
tree | 2b6546f2ebd5b3fa6d48bfd7ca4085d0f96e771f /include | |
parent | 450d19f8ab35fad4ef2b129cb383a5b8d1326611 (diff) |
[NETNS][IPV6] ip6_fib - gc timer per namespace
Move the timer initialization at the network namespace creation and
store the network namespace in the timer argument.
That enables multiple timers (one per network namespace) to do garbage
collecting.
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/ip6_route.h | 2 | ||||
-rw-r--r-- | include/net/netns/ipv6.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index a158abe71933..79dce496f4d4 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -78,7 +78,7 @@ extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev, | |||
78 | struct in6_addr *addr); | 78 | struct in6_addr *addr); |
79 | extern int icmp6_dst_gc(int *more); | 79 | extern int icmp6_dst_gc(int *more); |
80 | 80 | ||
81 | extern void fib6_force_start_gc(void); | 81 | extern void fib6_force_start_gc(struct net *net); |
82 | 82 | ||
83 | extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev, | 83 | extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev, |
84 | const struct in6_addr *addr, | 84 | const struct in6_addr *addr, |
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index b0653261c5a3..5279cd6a00ba 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
@@ -36,6 +36,7 @@ struct netns_ipv6 { | |||
36 | struct xt_table *ip6table_mangle; | 36 | struct xt_table *ip6table_mangle; |
37 | struct xt_table *ip6table_raw; | 37 | struct xt_table *ip6table_raw; |
38 | #endif | 38 | #endif |
39 | struct timer_list *ip6_fib_timer; | ||
39 | struct hlist_head *fib_table_hash; | 40 | struct hlist_head *fib_table_hash; |
40 | struct fib6_table *fib6_main_tbl; | 41 | struct fib6_table *fib6_main_tbl; |
41 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES | 42 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES |