Lines Matching refs:family
28 if (unlikely(afinfo->family >= NPROTO))
31 if (unlikely(xfrm_input_afinfo[afinfo->family] != NULL))
34 rcu_assign_pointer(xfrm_input_afinfo[afinfo->family], afinfo);
46 if (unlikely(afinfo->family >= NPROTO))
49 if (likely(xfrm_input_afinfo[afinfo->family] != NULL)) {
50 if (unlikely(xfrm_input_afinfo[afinfo->family] != afinfo))
53 RCU_INIT_POINTER(xfrm_input_afinfo[afinfo->family], NULL);
61 static struct xfrm_input_afinfo *xfrm_input_get_afinfo(unsigned int family)
65 if (unlikely(family >= NPROTO))
68 afinfo = rcu_dereference(xfrm_input_afinfo[family]);
79 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol,
83 struct xfrm_input_afinfo *afinfo = xfrm_input_get_afinfo(family);
169 if (x->sel.family == AF_UNSPEC) {
189 unsigned int family;
198 family = x->outer_mode->afinfo->family;
204 family = XFRM_SPI_SKB_CB(skb)->family;
232 x = xfrm_state_lookup(net, skb->mark, daddr, spi, nexthdr, family);
235 xfrm_audit_state_notfound(skb, family, spi, seq);
241 if (xfrm_tunnel_check(skb, x, family)) {
316 if (x->sel.family == AF_UNSPEC) {
337 family = x->outer_mode->afinfo->family;
346 err = xfrm_rcv_cb(skb, family, x->type->proto, 0);
363 xfrm_rcv_cb(skb, family, x && x->type ? x->type->proto : nexthdr, -1);