Searched refs:inner_mode (Results 1 – 10 of 10) sorted by relevance
335 const struct xfrm_mode *inner_mode, in xfrm_inner_mode_encap_remove() argument338 switch (inner_mode->encap) { in xfrm_inner_mode_encap_remove()340 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()342 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()346 if (inner_mode->family == AF_INET) in xfrm_inner_mode_encap_remove()348 if (inner_mode->family == AF_INET6) in xfrm_inner_mode_encap_remove()359 const struct xfrm_mode *inner_mode = &x->inner_mode; in xfrm_prepare_input() local374 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrm_prepare_input()375 if (!inner_mode) in xfrm_prepare_input()379 switch (inner_mode->family) { in xfrm_prepare_input()[all …]
869 const struct xfrm_mode *inner_mode; in xfrm_inner_extract_output() local872 inner_mode = xfrm_ip2inner_mode(x, in xfrm_inner_extract_output()875 inner_mode = &x->inner_mode; in xfrm_inner_extract_output()877 if (inner_mode == NULL) in xfrm_inner_extract_output()880 switch (inner_mode->family) { in xfrm_inner_extract_output()
315 const struct xfrm_mode *inner_mode; in xfrmi_rcv_cb() local345 inner_mode = &x->inner_mode; in xfrmi_rcv_cb()348 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in xfrmi_rcv_cb()349 if (inner_mode == NULL) { in xfrmi_rcv_cb()357 inner_mode->family)) in xfrmi_rcv_cb()
2617 const struct xfrm_mode *inner_mode; in __xfrm_init_state() local2629 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()2630 if (inner_mode == NULL) { in __xfrm_init_state()2635 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL) && in __xfrm_init_state()2641 x->inner_mode = *inner_mode; in __xfrm_init_state()2646 inner_mode = xfrm_get_mode(x->props.mode, x->props.family); in __xfrm_init_state()2647 if (inner_mode == NULL) { in __xfrm_init_state()2652 if (!(inner_mode->flags & XFRM_MODE_FLAG_TUNNEL)) { in __xfrm_init_state()2657 x->inner_mode = *inner_mode; in __xfrm_init_state()
2539 const struct xfrm_mode *inner_mode; in xfrm_bundle_create() local2580 inner_mode = xfrm_ip2inner_mode(xfrm[i], in xfrm_bundle_create()2582 if (!inner_mode) { in xfrm_bundle_create()2588 inner_mode = &xfrm[i]->inner_mode; in xfrm_bundle_create()2619 afinfo = xfrm_state_afinfo_get_rcu(inner_mode->family); in xfrm_bundle_create()
99 const struct xfrm_mode *inner_mode; in vti_rcv_cb() local118 inner_mode = &x->inner_mode; in vti_rcv_cb()121 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti_rcv_cb()122 if (inner_mode == NULL) { in vti_rcv_cb()129 family = inner_mode->family; in vti_rcv_cb()
113 __be16 type = x->inner_mode.family == AF_INET6 ? htons(ETH_P_IPV6) in xfrm4_tunnel_gso_segment()
351 const struct xfrm_mode *inner_mode; in vti6_rcv_cb() local370 inner_mode = &x->inner_mode; in vti6_rcv_cb()373 inner_mode = xfrm_ip2inner_mode(x, XFRM_MODE_SKB_CB(skb)->protocol); in vti6_rcv_cb()374 if (inner_mode == NULL) { in vti6_rcv_cb()381 family = inner_mode->family; in vti6_rcv_cb()
148 __be16 type = x->inner_mode.family == AF_INET ? htons(ETH_P_IP) in xfrm6_tunnel_gso_segment()
267 struct xfrm_mode inner_mode; member447 return &x->inner_mode; in xfrm_ip2inner_mode()