]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/xfrm4_policy.c
[NETNS][DST] dst: pass the dst_ops as parameter to the gc functions
[~andy/linux] / net / ipv4 / xfrm4_policy.c
index 656345f75e0da2a11d21f83627dafc78ef54425c..f04516c880fb2daa9a29ce68287d136e863b3c6c 100644 (file)
@@ -185,7 +185,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse)
        fl->fl4_tos = iph->tos;
 }
 
-static inline int xfrm4_garbage_collect(void)
+static inline int xfrm4_garbage_collect(struct dst_ops *ops)
 {
        xfrm4_policy_afinfo.garbage_collect();
        return (atomic_read(&xfrm4_dst_ops.entries) > xfrm4_dst_ops.gc_thresh*2);