| /Linux-v5.4/net/core/ |
| D | lwtunnel.c | 28 static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type) in lwtunnel_encap_str() argument 33 switch (encap_type) { in lwtunnel_encap_str() 83 unsigned int encap_type) in lwtunnel_encap_del_ops() argument 87 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops() 88 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops() 92 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops() 101 int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument 110 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state() 111 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state() 119 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state() [all …]
|
| /Linux-v5.4/net/ipv4/ |
| D | xfrm4_input.c | 96 __u16 encap_type = up->encap_type; in xfrm4_udp_encap_rcv() local 99 if (!encap_type) in xfrm4_udp_encap_rcv() 113 switch (encap_type) { in xfrm4_udp_encap_rcv() 166 return xfrm4_rcv_encap(skb, IPPROTO_ESP, 0, encap_type); in xfrm4_udp_encap_rcv()
|
| D | xfrm4_protocol.c | 62 int encap_type) in xfrm4_rcv_encap() argument 76 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
|
| 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()
|
| D | udp_tunnel.c | 78 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
|
| D | esp4.c | 230 int encap_type; in esp_output_udp_encap() local 241 encap_type = encap->encap_type; in esp_output_udp_encap() 254 switch (encap_type) { in esp_output_udp_encap() 981 switch (encap->encap_type) { in esp_init_state()
|
| D | fib_semantics.c | 567 u16 encap_type, void *cfg, gfp_t gfp_flags, in fib_nh_common_init() argument 580 if (encap_type == LWTUNNEL_ENCAP_NONE) { in fib_nh_common_init() 585 err = lwtunnel_build_state(encap_type, encap, nhc->nhc_family, in fib_nh_common_init() 810 static int fib_encap_match(u16 encap_type, in fib_encap_match() argument 819 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match() 822 ret = lwtunnel_build_state(encap_type, encap, AF_INET, in fib_encap_match()
|
| D | udp.c | 2005 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_queue_rcv_one_skb() 2508 if (up->encap_type) { in udp_destroy_sock() 2559 up->encap_type = val; in udp_lib_setsockopt() 2671 val = up->encap_type; in udp_lib_getsockopt()
|
| D | fou.c | 593 tunnel_cfg.encap_type = 1; in fou_create()
|
| /Linux-v5.4/include/net/ |
| D | lwtunnel.h | 112 int lwtunnel_valid_encap_type(u16 encap_type, 116 int lwtunnel_build_state(u16 encap_type, 197 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument 212 static inline int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument 261 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
|
| D | udp_tunnel.h | 80 __u8 encap_type; member
|
| D | xfrm.h | 1398 int encap_type); 1548 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type); 1564 int encap_type);
|
| /Linux-v5.4/drivers/net/ethernet/sfc/ |
| 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()
|
| D | ef10.c | 4053 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_push_prep_set_match_fields() local 4083 if (encap_type) { in efx_ef10_filter_push_prep_set_match_fields() 4088 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_ef10_filter_push_prep_set_match_fields() 4093 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_ef10_filter_push_prep_set_match_fields() 4215 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_mcdi_flags_from_spec() local 4232 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4233 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4234 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4235 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() 4236 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec() [all …]
|
| /Linux-v5.4/net/xfrm/ |
| D | xfrm_input.c | 455 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument 474 if (encap_type < 0) { in xfrm_input() 484 if (encap_type == -1) in xfrm_input() 492 if (encap_type == -1) { in xfrm_input() 499 encap_type = 0; in xfrm_input() 606 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input() 657 encap_type = 0; in xfrm_input()
|
| D | xfrm_state.c | 1660 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
|
| /Linux-v5.4/include/linux/ |
| D | udp.h | 46 __u8 encap_type; /* Is this an Encapsulation socket? */ member
|
| /Linux-v5.4/include/uapi/linux/ |
| D | xfrm.h | 250 __u16 encap_type; member
|
| /Linux-v5.4/drivers/net/ |
| D | gtp.c | 299 udp_sk(sk)->encap_type = 0; in __gtp_encap_destroy() 341 switch (udp_sk(sk)->encap_type) { in gtp_encap_recv() 821 tuncfg.encap_type = type; in gtp_encap_enable_socket()
|
| /Linux-v5.4/net/rxrpc/ |
| D | local_object.c | 132 udp_sk(usk)->encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
|
| /Linux-v5.4/drivers/infiniband/sw/rxe/ |
| D | rxe_net.c | 257 tnl_cfg.encap_type = 1; in rxe_setup_udp_tunnel()
|
| /Linux-v5.4/net/l2tp/ |
| D | l2tp_core.c | 1161 (udp_sk(sk))->encap_type = 0; in l2tp_tunnel_destruct() 1515 .encap_type = UDP_ENCAP_L2TPINUDP, in l2tp_tunnel_register()
|
| /Linux-v5.4/net/tipc/ |
| D | udp_media.c | 755 tuncfg.encap_type = 1; in tipc_udp_enable()
|
| /Linux-v5.4/net/ipv6/ |
| D | udp.c | 608 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_queue_rcv_one_skb() 1543 if (up->encap_type) { in udpv6_destroy_sock()
|
| /Linux-v5.4/net/key/ |
| D | af_key.c | 823 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 1002 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg() 1010 n_type->sadb_x_nat_t_type_type = natt->encap_type; in __pfkey_xfrm_state2msg() 1276 natt->encap_type = n_type->sadb_x_nat_t_type_type; in pfkey_msg2xfrm_state()
|