Lines Matching refs:dst_ops
2590 struct dst_ops *dst_ops; in xfrm_alloc_dst() local
2598 dst_ops = &net->xfrm.xfrm4_dst_ops; in xfrm_alloc_dst()
2602 dst_ops = &net->xfrm.xfrm6_dst_ops; in xfrm_alloc_dst()
2608 xdst = dst_alloc(dst_ops, NULL, DST_OBSOLETE_NONE, 0); in xfrm_alloc_dst()
4094 struct dst_ops *dst_ops = afinfo->dst_ops; in xfrm_policy_register_afinfo() local
4095 if (likely(dst_ops->kmem_cachep == NULL)) in xfrm_policy_register_afinfo()
4096 dst_ops->kmem_cachep = xfrm_dst_cache; in xfrm_policy_register_afinfo()
4097 if (likely(dst_ops->check == NULL)) in xfrm_policy_register_afinfo()
4098 dst_ops->check = xfrm_dst_check; in xfrm_policy_register_afinfo()
4099 if (likely(dst_ops->default_advmss == NULL)) in xfrm_policy_register_afinfo()
4100 dst_ops->default_advmss = xfrm_default_advmss; in xfrm_policy_register_afinfo()
4101 if (likely(dst_ops->mtu == NULL)) in xfrm_policy_register_afinfo()
4102 dst_ops->mtu = xfrm_mtu; in xfrm_policy_register_afinfo()
4103 if (likely(dst_ops->negative_advice == NULL)) in xfrm_policy_register_afinfo()
4104 dst_ops->negative_advice = xfrm_negative_advice; in xfrm_policy_register_afinfo()
4105 if (likely(dst_ops->link_failure == NULL)) in xfrm_policy_register_afinfo()
4106 dst_ops->link_failure = xfrm_link_failure; in xfrm_policy_register_afinfo()
4107 if (likely(dst_ops->neigh_lookup == NULL)) in xfrm_policy_register_afinfo()
4108 dst_ops->neigh_lookup = xfrm_neigh_lookup; in xfrm_policy_register_afinfo()
4109 if (likely(!dst_ops->confirm_neigh)) in xfrm_policy_register_afinfo()
4110 dst_ops->confirm_neigh = xfrm_confirm_neigh; in xfrm_policy_register_afinfo()
4121 struct dst_ops *dst_ops = afinfo->dst_ops; in xfrm_policy_unregister_afinfo() local
4133 dst_ops->kmem_cachep = NULL; in xfrm_policy_unregister_afinfo()
4134 dst_ops->check = NULL; in xfrm_policy_unregister_afinfo()
4135 dst_ops->negative_advice = NULL; in xfrm_policy_unregister_afinfo()
4136 dst_ops->link_failure = NULL; in xfrm_policy_unregister_afinfo()