| /linux/net/core/ |
| A D | lwtunnel.c | 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() 120 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 121 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 155 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_valid_encap_type() 156 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_valid_encap_type() 193 u16 encap_type; in lwtunnel_valid_encap_type_attr() local [all …]
|
| /linux/net/ipv4/ |
| A D | xfrm4_input.c | 89 u16 encap_type; in __xfrm4_udp_encap_rcv() local 91 encap_type = READ_ONCE(up->encap_type); in __xfrm4_udp_encap_rcv() 93 if (!encap_type) in __xfrm4_udp_encap_rcv() 107 switch (encap_type) { in __xfrm4_udp_encap_rcv() 168 udp_sk(sk)->encap_type); in xfrm4_udp_encap_rcv()
|
| A D | esp4_offload.c | 36 int encap_type = 0; in esp4_gro_receive() local 82 encap_type = UDP_ENCAP_ESPINUDP; in esp4_gro_receive() 91 xfrm_input(skb, IPPROTO_ESP, spi, encap_type); in esp4_gro_receive() 274 int encap_type = 0; in esp_xmit() local 308 encap_type = x->encap->encap_type; in esp_xmit() 310 if (!hw_offload || !skb_is_gso(skb) || (hw_offload && encap_type == UDP_ENCAP_ESPINUDP)) { in esp_xmit() 337 if (hw_offload && encap_type == UDP_ENCAP_ESPINUDP) { in esp_xmit()
|
| A D | esp4.c | 279 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 345 int encap_type, in esp_output_udp_encap() argument 368 if (!xo || encap_type != UDP_ENCAP_ESPINUDP) in esp_output_udp_encap() 415 int encap_type; in esp_output_encap() local 420 encap_type = encap->encap_type; in esp_output_encap() 423 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() 1172 switch (encap->encap_type) { in esp_init_state()
|
| 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()
|
| A D | ip_vti.c | 48 int encap_type, bool update_skb_dev) in vti_input() argument 69 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input() 79 int encap_type) in vti_input_proto() argument 81 return vti_input(skb, nexthdr, spi, encap_type, false); in vti_input_proto()
|
| A D | udp_tunnel_core.c | 74 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
| /linux/include/net/ |
| 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
|
| A D | ipv6_stubs.h | 68 int encap_type);
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| 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()
|
| /linux/drivers/net/ethernet/sfc/ |
| 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()
|
| A D | mcdi_filters.c | 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() 301 if (encap_type) { in efx_mcdi_filter_mcdi_flags_from_spec() 826 enum efx_encap_type encap_type, in efx_mcdi_filter_insert_def() argument 845 if (encap_type) { in efx_mcdi_filter_insert_def() 874 if (encap_type & EFX_ENCAP_FLAG_IPV6) in efx_mcdi_filter_insert_def() 876 else if (encap_type) in efx_mcdi_filter_insert_def() 905 if (encap_type >= ARRAY_SIZE(map) || map[encap_type] == 0) { in efx_mcdi_filter_insert_def() 914 if (!table->mc_chaining && !encap_type) { in efx_mcdi_filter_insert_def() [all …]
|
| /linux/net/ipv6/ |
| A D | xfrm6_input.c | 85 u16 encap_type; in __xfrm6_udp_encap_rcv() local 87 encap_type = READ_ONCE(up->encap_type); in __xfrm6_udp_encap_rcv() 89 if (!encap_type) in __xfrm6_udp_encap_rcv() 103 switch (encap_type) { in __xfrm6_udp_encap_rcv() 166 udp_sk(sk)->encap_type); in xfrm6_udp_encap_rcv()
|
| A D | esp6.c | 315 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done() 381 int encap_type, in esp6_output_udp_encap() argument 445 int encap_type; in esp6_output_encap() local 450 encap_type = encap->encap_type; in esp6_output_encap() 453 switch (encap_type) { in esp6_output_encap() 456 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 675 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 813 switch (x->encap->encap_type) { in esp6_input_done2() 1219 switch (encap->encap_type) { in esp6_init_state()
|
| A D | esp6_offload.c | 59 int encap_type = 0; in esp6_gro_receive() local 65 encap_type = UDP_ENCAP_ESPINUDP; in esp6_gro_receive() 120 xfrm_input(skb, IPPROTO_ESP, spi, encap_type); in esp6_gro_receive()
|
| 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()
|
| /linux/net/xfrm/ |
| A D | xfrm_input.c | 456 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 474 if (encap_type < 0 || (xo && (xo->flags & XFRM_GRO || encap_type == 0 || in xfrm_input() 475 encap_type == UDP_ENCAP_ESPINUDP))) { in xfrm_input() 485 if (encap_type == -1) in xfrm_input() 493 if (encap_type == -1) { in xfrm_input() 614 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 665 encap_type = 0; in xfrm_input()
|
| A D | xfrm_interface_core.c | 314 int encap_type, unsigned short family) in xfrmi_input() argument 332 return xfrm_input(skb, nexthdr, spi, encap_type); in xfrmi_input() 349 static int xfrmi4_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi4_input() argument 351 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET); in xfrmi4_input() 354 static int xfrmi6_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi6_input() argument 356 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET6); in xfrmi6_input()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| A D | hal_tx.h | 24 enum hal_tcl_encap_type encap_type; member
|
| 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()
|
| 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()
|
| /linux/Documentation/netlink/specs/ |
| A D | fou.yaml | 18 name: encap_type
|
| /linux/include/linux/ |
| A D | udp.h | 57 __u8 encap_type; /* Is this an Encapsulation socket? */ member
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| A D | hal_tx.h | 26 enum hal_tcl_encap_type encap_type; member
|
| A D | dp_tx.c | 121 le32_encode_bits(ti->encap_type, in ath12k_hal_tx_cmd_ext_desc_setup() 292 ti.encap_type = ath12k_dp_tx_get_encap_type(arvif, skb); in ath12k_dp_tx() 304 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW) { in ath12k_dp_tx() 316 switch (ti.encap_type) { in ath12k_dp_tx() 370 ti.encap_type = HAL_TCL_ENCAP_TYPE_RAW; in ath12k_dp_tx()
|