mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
[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>
This commit is contained in:
parent
450d19f8ab
commit
63152fc0de
4 changed files with 34 additions and 30 deletions
|
|
@ -78,7 +78,7 @@ extern struct dst_entry *icmp6_dst_alloc(struct net_device *dev,
|
|||
struct in6_addr *addr);
|
||||
extern int icmp6_dst_gc(int *more);
|
||||
|
||||
extern void fib6_force_start_gc(void);
|
||||
extern void fib6_force_start_gc(struct net *net);
|
||||
|
||||
extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
|
||||
const struct in6_addr *addr,
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ struct netns_ipv6 {
|
|||
struct xt_table *ip6table_mangle;
|
||||
struct xt_table *ip6table_raw;
|
||||
#endif
|
||||
struct timer_list *ip6_fib_timer;
|
||||
struct hlist_head *fib_table_hash;
|
||||
struct fib6_table *fib6_main_tbl;
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
|
|
|
|||
Loading…
Reference in a new issue