Home
last modified time | relevance | path

Searched refs:encap_type (Results 1 – 25 of 40) sorted by relevance

12

/linux/net/core/
H A Dlwtunnel.c31 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 …]
/linux/include/net/
H A Dlwtunnel.h118 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 Dipv6_stubs.h68 int encap_type);
H A Dudp_tunnel.h83 __u8 encap_type; member
H A Dxfrm.h1590 int encap_type);
1601 int encap_type);
1766 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type);
1783 int encap_type);
1804 int encap_type);
/linux/drivers/net/ethernet/sfc/siena/
H A Dfilter.h170 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 Dfilter.h170 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 Dmcdi_filters.c97 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 Dxfrm6_input.c85 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()
H A Desp6.c315 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()
1220 switch (encap->encap_type) { in esp6_init_state()
H A Dxfrm6_protocol.c63 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/ipv4/
H A Desp4.c279 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()
1173 switch (encap->encap_type) { in esp_init_state()
H A Dip_vti.c48 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 Dudp_tunnel_core.c74 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
H A Dfib_semantics.c563 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument
577 if (encap_type == LWTUNNEL_ENCAP_NONE) { in fib_nh_common_init()
582 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init()
833 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument
842 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match()
845 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
H A Dudp.c949 if (!sk || READ_ONCE(udp_sk(sk)->encap_type)) { in __udp4_lib_err()
2357 READ_ONCE(up->encap_type)) { in udp_queue_rcv_one_skb()
2889 if (up->encap_type) { in udp_destroy_sock()
2900 static void set_xfrm_gro_udp_encap_rcv(__u16 encap_type, unsigned short family, in set_xfrm_gro_udp_encap_rcv() argument
2904 if (udp_test_bit(GRO_ENABLED, sk) && encap_type == UDP_ENCAP_ESPINUDP) { in set_xfrm_gro_udp_encap_rcv()
2974 WRITE_ONCE(up->encap_type, val); in udp_lib_setsockopt()
3004 set_xfrm_gro_udp_encap_rcv(up->encap_type, sk->sk_family, sk); in udp_lib_setsockopt()
3076 val = READ_ONCE(up->encap_type); in udp_lib_getsockopt()
/linux/drivers/net/wireless/ath/ath11k/
H A Dhal_tx.h24 enum hal_tcl_encap_type encap_type; member
H A Dhal_tx.c53 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) | in ath11k_hal_tx_cmd_desc_setup()
H A Ddp_tx.c142 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/net/xfrm/
H A Dxfrm_interface_core.c314 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/ath12k/
H A Ddp_tx.c121 le32_encode_bits(ti->encap_type, in ath12k_hal_tx_cmd_ext_desc_setup()
293 ti.encap_type = ath12k_dp_tx_get_encap_type(arvif, skb); in ath12k_dp_tx()
305 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW) { in ath12k_dp_tx()
317 switch (ti.encap_type) { in ath12k_dp_tx()
371 ti.encap_type = HAL_TCL_ENCAP_TYPE_RAW; in ath12k_dp_tx()
H A Dhal_tx.h26 enum hal_tcl_encap_type encap_type; member
/linux/drivers/net/
H A Dpfcp.c173 tuncfg.encap_type = 1; in pfcp_create_sock()
H A Dgtp.c858 WRITE_ONCE(udp_sk(sk)->encap_type, 0); in __gtp_encap_destroy()
910 switch (READ_ONCE(udp_sk(sk)->encap_type)) { in gtp_encap_recv()
1430 tuncfg.encap_type = type; in gtp_create_sock()
1683 tuncfg.encap_type = type; in gtp_encap_enable_socket()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.c254 } else if (encap->encap_type == UDP_ENCAP_ESPINUDP) { in mlx5e_ipsec_tx_build_eseg()

12