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>
This commit is contained in:
committed by
David S. Miller
parent
3dd0b4997a
commit
ddcfd79680
@@ -2173,9 +2173,9 @@ static int unused_bundle(struct dst_entry *dst)
|
||||
return !atomic_read(&dst->__refcnt);
|
||||
}
|
||||
|
||||
static void __xfrm_garbage_collect(void)
|
||||
static void __xfrm_garbage_collect(struct net *net)
|
||||
{
|
||||
xfrm_prune_bundles(&init_net, unused_bundle);
|
||||
xfrm_prune_bundles(net, unused_bundle);
|
||||
}
|
||||
|
||||
static int xfrm_flush_bundles(struct net *net)
|
||||
|
Reference in New Issue
Block a user