aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-25 20:37:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 20:37:23 -0500
commitddcfd79680c1dc74eb5f24aa70785c11bf7eec8f (patch)
treef1d762f6b1cf6bcec289fe558a26dcb4e37ffb29 /net/xfrm
parent3dd0b4997a1d4f3a3666e400cc75b0279ce96849 (diff)
netns xfrm: dst garbage-collecting in netns
Pass netns pointer to struct xfrm_policy_afinfo::garbage_collect() [This needs more thoughts on what to do with dst_ops] [Currently stub to init_net] Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r--net/xfrm/xfrm_policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
index 49e089826f45..7ebbdd63fca0 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -2173,9 +2173,9 @@ static int unused_bundle(struct dst_entry *dst)
2173 return !atomic_read(&dst->__refcnt); 2173 return !atomic_read(&dst->__refcnt);
2174} 2174}
2175 2175
2176static void __xfrm_garbage_collect(void) 2176static void __xfrm_garbage_collect(struct net *net)
2177{ 2177{
2178 xfrm_prune_bundles(&init_net, unused_bundle); 2178 xfrm_prune_bundles(net, unused_bundle);
2179} 2179}
2180 2180
2181static int xfrm_flush_bundles(struct net *net) 2181static int xfrm_flush_bundles(struct net *net)