Home
last modified time | relevance | path

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

12

/linux/net/core/
A Dlwtunnel.c36 switch (encap_type) { in lwtunnel_encap_str()
90 unsigned int encap_type) in lwtunnel_encap_del_ops() argument
94 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops()
95 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops()
99 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops()
117 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state()
118 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state()
152 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_valid_encap_type()
153 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_valid_encap_type()
190 u16 encap_type; in lwtunnel_valid_encap_type_attr() local
[all …]
/linux/net/ipv4/
A Dxfrm4_input.c91 __u16 encap_type = up->encap_type; in xfrm4_udp_encap_rcv() local
94 if (!encap_type) in xfrm4_udp_encap_rcv()
108 switch (encap_type) { in xfrm4_udp_encap_rcv()
161 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
A Desp4.c277 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()
641 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_tail()
774 switch (x->encap->encap_type) { in esp_input_done2()
1165 switch (encap->encap_type) { in esp_init_state()
A Dudp_tunnel_core.c73 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
A Dxfrm4_protocol.c62 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 Dip_vti.c48 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()
A Dfib_semantics.c573 struct nlattr *encap, u16 encap_type, in fib_nh_common_init() argument
587 if (encap_type == LWTUNNEL_ENCAP_NONE) { in fib_nh_common_init()
592 err = lwtunnel_build_state(net, encap_type, encap, in fib_nh_common_init()
843 static int fib_encap_match(struct net *net, u16 encap_type, in fib_encap_match() argument
852 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match()
855 ret = lwtunnel_build_state(net, encap_type, encap, AF_INET, in fib_encap_match()
A Dudp.c723 if (!sk || udp_sk(sk)->encap_type) { in __udp4_lib_err()
2132 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_queue_rcv_one_skb()
2642 if (up->encap_type) { in udp_destroy_sock()
2700 up->encap_type = val; in udp_lib_setsockopt()
2805 val = up->encap_type; in udp_lib_getsockopt()
/linux/include/net/
A Dlwtunnel.h115 int lwtunnel_valid_encap_type(u16 encap_type,
119 int lwtunnel_build_state(struct net *net, u16 encap_type,
200 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument
215 static inline int lwtunnel_build_state(struct net *net, u16 encap_type, in lwtunnel_build_state() argument
264 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
A Dipv6_stubs.h64 int encap_type);
A Dxfrm.h1414 int encap_type);
1425 int encap_type);
1569 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type);
1587 int encap_type);
1609 int encap_type);
A Dudp_tunnel.h80 __u8 encap_type; member
/linux/drivers/net/ethernet/sfc/
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()
A Dmcdi_filters.c129 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()
298 if (encap_type) { in efx_mcdi_filter_mcdi_flags_from_spec()
822 enum efx_encap_type encap_type, in efx_mcdi_filter_insert_def() argument
841 if (encap_type) { in efx_mcdi_filter_insert_def()
870 if (encap_type & EFX_ENCAP_FLAG_IPV6) in efx_mcdi_filter_insert_def()
872 else if (encap_type) in efx_mcdi_filter_insert_def()
901 if (encap_type >= ARRAY_SIZE(map) || map[encap_type] == 0) { in efx_mcdi_filter_insert_def()
910 if (!table->mc_chaining && !encap_type) { in efx_mcdi_filter_insert_def()
[all …]
/linux/net/ipv6/
A Dxfrm6_input.c87 __u16 encap_type = up->encap_type; in xfrm6_udp_encap_rcv() local
90 if (!encap_type) in xfrm6_udp_encap_rcv()
104 switch (encap_type) { in xfrm6_udp_encap_rcv()
156 return xfrm6_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm6_udp_encap_rcv()
A Desp6.c314 x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp_output_done()
380 int encap_type, in esp6_output_udp_encap() argument
401 if (encap_type == UDP_ENCAP_ESPINUDP_NON_IKE) { in esp6_output_udp_encap()
451 int encap_type; in esp6_output_encap() local
456 encap_type = encap->encap_type; in esp6_output_encap()
459 switch (encap_type) { in esp6_output_encap()
463 esph = esp6_output_udp_encap(skb, encap_type, esp, sport, dport); in esp6_output_encap()
678 if (!err && x->encap && x->encap->encap_type == TCP_ENCAP_ESPINTCP) in esp6_output_tail()
821 switch (x->encap->encap_type) { in esp6_input_done2()
1218 switch (encap->encap_type) { in esp6_init_state()
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/xfrm/
A Dxfrm_input.c459 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument
478 if (encap_type < 0) { in xfrm_input()
488 if (encap_type == -1) in xfrm_input()
496 if (encap_type == -1) { in xfrm_input()
503 encap_type = 0; in xfrm_input()
610 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input()
661 encap_type = 0; in xfrm_input()
/linux/drivers/net/wireless/ath/ath11k/
A Dhal_tx.h23 enum hal_tcl_encap_type encap_type; member
A Dhal_tx.c53 FIELD_PREP(HAL_TCL_DATA_CMD_INFO0_ENCAP_TYPE, ti->encap_type) | in ath11k_hal_tx_cmd_desc_setup()
A Ddp_tx.c144 ti.encap_type = ath11k_dp_tx_get_encap_type(arvif, skb); in ath11k_dp_tx()
155 if (ti.encap_type == HAL_TCL_ENCAP_TYPE_RAW) { in ath11k_dp_tx()
177 ti.encap_type != HAL_TCL_ENCAP_TYPE_RAW) { in ath11k_dp_tx()
192 switch (ti.encap_type) { in ath11k_dp_tx()
/linux/include/linux/
A Dudp.h46 __u8 encap_type; /* Is this an Encapsulation socket? */ member
/linux/drivers/net/
A Dgtp.c299 udp_sk(sk)->encap_type = 0; in __gtp_encap_destroy()
341 switch (udp_sk(sk)->encap_type) { in gtp_encap_recv()
834 tuncfg.encap_type = type; in gtp_encap_enable_socket()
/linux/net/rxrpc/
A Dlocal_object.c135 tuncfg.encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
/linux/include/uapi/linux/
A Dxfrm.h255 __u16 encap_type; member

Completed in 87 milliseconds

12