| /linux/net/core/ |
| H A D | lwtunnel.c | 33 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 38 switch (encap_type) { in lwtunnel_encap_str() 95 unsigned int encap_type) in lwtunnel_encap_del_ops() argument 99 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 100 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 104 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 113 int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 122 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 123 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 131 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() [all …]
|
| /linux/net/ipv4/ |
| H A D | xfrm4_input.c | 90 u16 encap_type; in __xfrm4_udp_encap_rcv() local 92 encap_type = READ_ONCE(up->encap_type); in __xfrm4_udp_encap_rcv() 94 if (!encap_type) in __xfrm4_udp_encap_rcv() 108 switch (encap_type) { in __xfrm4_udp_encap_rcv() 169 udp_sk(sk)->encap_type); in xfrm4_udp_encap_rcv()
|
| H 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() 276 int encap_type = 0; in esp_xmit() local 310 encap_type = x->encap->encap_type; in esp_xmit() 312 if (!hw_offload || !skb_is_gso(skb) || (hw_offload && encap_type == UDP_ENCAP_ESPINUDP)) { in esp_xmit() 339 if (hw_offload && encap_type == UDP_ENCAP_ESPINUDP) { in esp_xmit()
|
| H A D | esp4.c | 241 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) { in esp_output_done() 310 int encap_type, in esp_output_udp_encap() argument 333 if (!xo || encap_type != UDP_ENCAP_ESPINUDP) in esp_output_udp_encap() 382 int encap_type; in esp_output_encap() local 387 encap_type = encap->encap_type; in esp_output_encap() 390 switch (encap_type) { in esp_output_encap() 393 esph = esp_output_udp_encap(skb, encap_type, esp, sport, dport); in esp_output_encap() 612 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail() 741 switch (x->encap->encap_type) { in esp_input_done2() 1143 switch (encap->encap_type) { in esp_init_state()
|
| H 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()
|
| H A D | udp_tunnel_core.c | 82 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
| H A D | fib_semantics.c | 642 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument 656 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init() 906 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument 915 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match() 918 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
|
| H A D | udp.c | 931 if (!sk || READ_ONCE(udp_sk(sk)->encap_type)) { in udp_err() 2367 READ_ONCE(up->encap_type)) { in udp_queue_rcv_one_skb() 2843 if (up->encap_type) { in udp_destroy_sock() 2860 static void set_xfrm_gro_udp_encap_rcv(__u16 encap_type, unsigned short family, in set_xfrm_gro_udp_encap_rcv() argument 2866 if (udp_test_bit(GRO_ENABLED, sk) && encap_type == UDP_ENCAP_ESPINUDP) { in set_xfrm_gro_udp_encap_rcv() 2948 WRITE_ONCE(up->encap_type, val); in udp_lib_setsockopt() 2979 set_xfrm_gro_udp_encap_rcv(up->encap_type, sk->sk_family, sk); in udp_lib_setsockopt() 3020 val = READ_ONCE(up->encap_type); in udp_lib_getsockopt()
|
| /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 219 static inline int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument 268 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
|
| H A D | xfrm.h | 1623 int encap_type); 1634 int encap_type); 1798 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type); 1824 int encap_type); 1845 int encap_type);
|
| /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()
|
| /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 …]
|
| /linux/net/ipv6/ |
| H A D | xfrm6_input.c | 86 u16 encap_type; in __xfrm6_udp_encap_rcv() local 88 encap_type = READ_ONCE(up->encap_type); in __xfrm6_udp_encap_rcv() 90 if (!encap_type) in __xfrm6_udp_encap_rcv() 104 switch (encap_type) { in __xfrm6_udp_encap_rcv() 167 udp_sk(sk)->encap_type); in xfrm6_udp_encap_rcv()
|
| H A D | esp6.c | 278 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) { in esp_output_done() 347 int encap_type, in esp6_output_udp_encap() argument 413 int encap_type; in esp6_output_encap() local 418 encap_type = encap->encap_type; in esp6_output_encap() 421 switch (encap_type) { in esp6_output_encap() 424 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap() 645 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail() 783 switch (x->encap->encap_type) { in esp6_input_done2() 1191 switch (encap->encap_type) { in esp6_init_state()
|
| H 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()
|
| H A D | xfrm6_protocol.c | 63 int encap_type) in xfrm6_rcv_encap() argument 99 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm6_rcv_encap()
|
| /linux/net/xfrm/ |
| H A D | xfrm_input.c | 466 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 485 if (encap_type < 0 || (xo && (xo->flags & XFRM_GRO || encap_type == 0 || in xfrm_input() 486 encap_type == UDP_ENCAP_ESPINUDP))) { in xfrm_input() 496 if (encap_type == -1) in xfrm_input() 504 if (encap_type == -2) in xfrm_input() 508 if (encap_type == -1) { in xfrm_input() 637 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 683 encap_type = 0; in xfrm_input()
|
| H A D | xfrm_interface_core.c | 313 int encap_type, unsigned short family) in xfrmi_input() argument 331 return xfrm_input(skb, nexthdr, spi, encap_type); in xfrmi_input() 348 static int xfrmi4_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi4_input() argument 350 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET); in xfrmi4_input() 353 static int xfrmi6_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrmi6_input() argument 355 return xfrmi_input(skb, nexthdr, spi, encap_type, AF_INET6); in xfrmi6_input()
|
| /linux/drivers/net/wireless/ath/ath12k/wifi7/ |
| H A D | dp_tx.c | 53 ti->encap_type = HAL_TCL_ENCAP_TYPE_RAW; in ath12k_wifi7_dp_tx_encap_eapol() 72 le32_encode_bits(ti->encap_type, in ath12k_wifi7_hal_tx_cmd_ext_desc_setup() 224 ti.encap_type = ath12k_dp_tx_get_encap_type(ab, skb); in ath12k_wifi7_dp_tx() 242 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW) { in ath12k_wifi7_dp_tx() 254 switch (ti.encap_type) { in ath12k_wifi7_dp_tx() 274 ti.encap_type = HAL_TCL_ENCAP_TYPE_RAW; in ath12k_wifi7_dp_tx() 349 ti.encap_type = HAL_TCL_ENCAP_TYPE_RAW; in ath12k_wifi7_dp_tx() 426 arvif->link_stats.tx_encap_type[ti.encap_type]++; in ath12k_wifi7_dp_tx()
|
| /linux/drivers/net/ovpn/ |
| H A D | socket.c | 154 u8 type = READ_ONCE(udp_sk(sk)->encap_type); in ovpn_socket_new()
|
| /linux/include/linux/ |
| H A D | udp.h | 88 __u8 encap_type; /* Is this an Encapsulation socket? */ member
|
| /linux/drivers/net/ |
| H A D | pfcp.c | 175 tuncfg.encap_type = 1; in pfcp_create_sock()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_rxtx.c | 254 } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) { in mlx5e_ipsec_tx_build_eseg()
|
| /linux/net/rxrpc/ |
| H A D | local_object.c | 193 tuncfg.encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
|