diff options
author | Patrick McHardy <kaber@trash.net> | 2010-05-11 08:40:48 -0400 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-05-11 08:40:48 -0400 |
commit | c476efbcde5ba58b81ac752f4a894d6db8e17d94 (patch) | |
tree | 69aea7351adf2ae537e4d6ec76e1cc0799a16593 /include/net | |
parent | d250fe91ae129bff0968e685cc9c466d3a5e3482 (diff) |
ipv6: ip6mr: move unres_queue and timer to per-namespace data
The unres_queue is currently shared between all namespaces. Following patches
will additionally allow to create multiple multicast routing tables in each
namespace. Having a single shared queue for all these users seems to excessive,
move the queue and the cleanup timer to the per-namespace data to unshare it.
As a side-effect, this fixes a bug in the seq file iteration functions: the
first entry returned is always from the current namespace, entries returned
after that may belong to any namespace.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netns/ipv6.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index 1f11ebc22151..43d842ab004e 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h | |||
@@ -60,6 +60,8 @@ struct netns_ipv6 { | |||
60 | struct sock *igmp_sk; | 60 | struct sock *igmp_sk; |
61 | #ifdef CONFIG_IPV6_MROUTE | 61 | #ifdef CONFIG_IPV6_MROUTE |
62 | struct sock *mroute6_sk; | 62 | struct sock *mroute6_sk; |
63 | struct timer_list ipmr_expire_timer; | ||
64 | struct mfc6_cache *mfc6_unres_queue; | ||
63 | struct mfc6_cache **mfc6_cache_array; | 65 | struct mfc6_cache **mfc6_cache_array; |
64 | struct mif_device *vif6_table; | 66 | struct mif_device *vif6_table; |
65 | int maxvif; | 67 | int maxvif; |