/openbmc/linux/net/core/ |
H A D | lwtunnel.c | 31 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 36 switch (encap_type) { in lwtunnel_encap_str() 93 unsigned int encap_type) in lwtunnel_encap_del_ops() argument 97 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 98 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 102 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 111 int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 120 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 121 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 129 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | xfrm4_input.c | 94 u16 encap_type; in xfrm4_udp_encap_rcv() local 96 encap_type = READ_ONCE(up->encap_type); in xfrm4_udp_encap_rcv() 98 if (!encap_type) in xfrm4_udp_encap_rcv() 112 switch (encap_type) { in xfrm4_udp_encap_rcv() 165 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
|
H A D | esp4.c | 277 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 343 int encap_type, in esp_output_udp_encap() argument 364 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp_output_udp_encap() 414 int encap_type; in esp_output_encap() local 419 encap_type = encap->encap_type; in esp_output_encap() 422 switch (encap_type) { in esp_output_encap() 426 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap() 643 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail() 772 switch (x->encap->encap_type) { in esp_input_done2() 1173 switch (encap->encap_type) { in esp_init_state()
|
H A D | udp_tunnel_core.c | 73 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
H A D | xfrm4_protocol.c | 62 int encap_type) in xfrm4_rcv_encap() argument 84 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
H A D | ip_vti.c | 48 int encap_type, bool update_skb_dev) in vti_input() argument 66 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input() 76 int encap_type) in vti_input_proto() argument 78 return vti_input(skb, nexthdr, spi, encap_type, false); in vti_input_proto()
|
H A D | fib_semantics.c | 585 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument 599 if (encap_type == LWTUNNEL_ENCAP_NONE) { in fib_nh_common_init() 604 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init() 855 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument 864 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match() 867 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
|
/openbmc/linux/include/net/ |
H A D | lwtunnel.h | 118 int lwtunnel_valid_encap_type(u16 encap_type, 122 int lwtunnel_build_state(struct net *net, u16 encap_type, 203 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument 218 static inline int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 267 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
|
H A D | ipv6_stubs.h | 64 int encap_type);
|
H A D | udp_tunnel.h | 83 __u8 encap_type; member
|
H A D | xfrm.h | 1503 int encap_type); 1514 int encap_type); 1677 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type); 1695 int encap_type); 1717 int encap_type);
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | filter.h | 170 u32 encap_type:4; member 296 enum efx_encap_type encap_type) in efx_filter_set_encap_type() argument 299 spec->encap_type = encap_type; in efx_filter_set_encap_type() 306 return spec->encap_type; in efx_filter_get_encap_type()
|
/openbmc/linux/net/ipv6/ |
H A D | xfrm6_input.c | 90 u16 encap_type; in xfrm6_udp_encap_rcv() local 95 encap_type = READ_ONCE(up->encap_type); in xfrm6_udp_encap_rcv() 97 if (!encap_type) in xfrm6_udp_encap_rcv() 111 switch (encap_type) { in xfrm6_udp_encap_rcv() 163 return xfrm6_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm6_udp_encap_rcv()
|
H A D | esp6.c | 313 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 379 int encap_type, in esp6_output_udp_encap() argument 400 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp6_output_udp_encap() 450 int encap_type; in esp6_output_encap() local 455 encap_type = encap->encap_type; in esp6_output_encap() 458 switch (encap_type) { in esp6_output_encap() 462 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 681 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 819 switch (x->encap->encap_type) { in esp6_input_done2() 1226 switch (encap->encap_type) { in esp6_init_state()
|
H A D | xfrm6_protocol.c | 63 int encap_type) in xfrm6_rcv_encap() argument 97 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | filter.h | 170 u32 encap_type:4; member 329 enum efx_encap_type encap_type) in efx_filter_set_encap_type() argument 332 spec->encap_type = encap_type; in efx_filter_set_encap_type() 339 return spec->encap_type; in efx_filter_get_encap_type()
|
H A D | mcdi_filters.c | 97 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_push_prep_set_match_fields() local 129 if (encap_type) { in efx_mcdi_filter_push_prep_set_match_fields() 135 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_mcdi_filter_push_prep_set_match_fields() 140 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_mcdi_filter_push_prep_set_match_fields() 270 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_mcdi_filter_mcdi_flags_from_spec() local 287 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 288 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 289 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 290 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() 291 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_mcdi_filter_mcdi_flags_from_spec() [all …]
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_input.c | 455 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 473 if (encap_type < 0) { in xfrm_input() 483 if (encap_type == -1) in xfrm_input() 491 if (encap_type == -1) { in xfrm_input() 498 encap_type = 0; in xfrm_input() 605 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 656 encap_type = 0; in xfrm_input()
|
H A D | xfrm_interface_core.c | 315 int encap_type, unsigned short family) in xfrmi_input() argument 333 return xfrm_input(skb, nexthdr, spi, encap_type); in xfrmi_input() 350 static int xfrmi4_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi4_input() argument 352 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET); in xfrmi4_input() 355 static int xfrmi6_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi6_input() argument 357 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET6); in xfrmi6_input()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | hal_tx.h | 24 enum hal_tcl_encap_type encap_type; member
|
H A D | hal_tx.c | 53 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) | in ath11k_hal_tx_cmd_desc_setup()
|
H A D | dp_tx.c | 142 ti.encap_type = ath11k_dp_tx_get_encap_type(arvif, skb); in ath11k_dp_tx() 153 if (unlikely(ti.encap_type == HAL_TCL_ENCAP_TYPE_RAW)) { in ath11k_dp_tx() 175 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW)) { in ath11k_dp_tx() 190 switch (ti.encap_type) { in ath11k_dp_tx()
|
/openbmc/linux/include/linux/ |
H A D | udp.h | 57 __u8 encap_type; /* Is this an Encapsulation socket? */ member
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | hal_tx.h | 26 enum hal_tcl_encap_type encap_type; member
|
H A D | dp_tx.c | 122 le32_encode_bits(ti->encap_type, in ath12k_hal_tx_cmd_ext_desc_setup() 199 ti.encap_type = ath12k_dp_tx_get_encap_type(arvif, skb); in ath12k_dp_tx() 211 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW) { in ath12k_dp_tx() 223 switch (ti.encap_type) { in ath12k_dp_tx()
|