Lines Matching full:family

56 	if (WARN_ON(afinfo->family > AF_INET6))  in xfrm_input_register_afinfo()
60 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) in xfrm_input_register_afinfo()
63 rcu_assign_pointer(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], afinfo); in xfrm_input_register_afinfo()
74 if (likely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) { in xfrm_input_unregister_afinfo()
75 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family] != afinfo)) in xfrm_input_unregister_afinfo()
78 RCU_INIT_POINTER(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], NULL); in xfrm_input_unregister_afinfo()
86 static const struct xfrm_input_afinfo *xfrm_input_get_afinfo(u8 family, bool is_ipip) in xfrm_input_get_afinfo() argument
90 if (WARN_ON_ONCE(family > AF_INET6)) in xfrm_input_get_afinfo()
94 afinfo = rcu_dereference(xfrm_input_afinfo[is_ipip][family]); in xfrm_input_get_afinfo()
100 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument
107 afinfo = xfrm_input_get_afinfo(family, is_ipip); in xfrm_rcv_cb()
338 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
340 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
344 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()
346 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()
359 switch (x->outer_mode.family) { in xfrm_prepare_input()
371 if (x->sel.family == AF_UNSPEC) { in xfrm_prepare_input()
377 switch (inner_mode->family) { in xfrm_prepare_input()
443 if (inner_mode->family == AF_INET) in xfrm_inner_mode_input()
445 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_input()
470 unsigned int family = AF_UNSPEC; in xfrm_input() local
493 family = x->outer_mode.family; in xfrm_input()
508 family = XFRM_SPI_SKB_CB(skb)->family; in xfrm_input()
542 family = XFRM_SPI_SKB_CB(skb)->family; in xfrm_input()
545 switch (family) { in xfrm_input()
580 x = xfrm_state_lookup(net, mark, daddr, spi, nexthdr, family); in xfrm_input()
584 xfrm_audit_state_notfound(skb, family, spi, seq); in xfrm_input()
627 if (xfrm_tunnel_check(skb, x, family)) { in xfrm_input()
679 if (x->sel.family == AF_UNSPEC) { in xfrm_input()
702 family = x->outer_mode.family; in xfrm_input()
712 err = xfrm_rcv_cb(skb, family, x->type->proto, 0); in xfrm_input()
732 afinfo = xfrm_state_afinfo_get_rcu(x->inner_mode.family); in xfrm_input()
751 xfrm_rcv_cb(skb, family, x && x->type ? x->type->proto : nexthdr, -1); in xfrm_input()