]> err.no Git - linux-2.6/blobdiff - net/ipv6/xfrm6_policy.c
[IPV6]: Add ORCHID prefix to address label table
[linux-2.6] / net / ipv6 / xfrm6_policy.c
index cf373b46a1baa9460d0d48333b253ea21a19deb8..7d20199ee1f39cb98c4622042fe9460e4dbd42a7 100644 (file)
@@ -212,7 +212,7 @@ _decode_session6(struct sk_buff *skb, struct flowi *fl, int reverse)
        }
 }
 
-static inline int xfrm6_garbage_collect(void)
+static inline int xfrm6_garbage_collect(struct dst_ops *ops)
 {
        xfrm6_policy_afinfo.garbage_collect();
        return (atomic_read(&xfrm6_dst_ops.entries) > xfrm6_dst_ops.gc_thresh*2);
@@ -272,6 +272,7 @@ static struct dst_ops xfrm6_dst_ops = {
        .local_out =            __ip6_local_out,
        .gc_thresh =            1024,
        .entry_size =           sizeof(struct xfrm_dst),
+       .entries =              ATOMIC_INIT(0),
 };
 
 static struct xfrm_policy_afinfo xfrm6_policy_afinfo = {