Home
last modified time | relevance | path

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

12

/Linux-v4.19/net/core/
Dlwtunnel.c33 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()
88 unsigned int encap_type) in lwtunnel_encap_del_ops() argument
92 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_encap_del_ops()
93 encap_type > LWTUNNEL_ENCAP_MAX) in lwtunnel_encap_del_ops()
97 &lwtun_encaps[encap_type], in lwtunnel_encap_del_ops()
106 int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument
115 if (encap_type == LWTUNNEL_ENCAP_NONE || in lwtunnel_build_state()
116 encap_type > LWTUNNEL_ENCAP_MAX) { in lwtunnel_build_state()
124 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
[all …]
/Linux-v4.19/net/ipv4/
Dxfrm4_input.c96 __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()
Dudp_tunnel.c69 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
Dxfrm4_protocol.c67 int encap_type) in xfrm4_rcv_encap() argument
81 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
Desp4.c228 int encap_type; in esp_output_udp_encap() local
238 encap_type = encap->encap_type; in esp_output_udp_encap()
248 switch (encap_type) { in esp_output_udp_encap()
992 switch (encap->encap_type) { in esp_init_state()
Dip_vti.c53 int encap_type) in vti_input() argument
68 return xfrm_input(skb, nexthdr, spi, encap_type); in vti_input()
Dfib_semantics.c610 static int fib_encap_match(u16 encap_type, in fib_encap_match() argument
619 if (encap_type == LWTUNNEL_ENCAP_NONE) in fib_encap_match()
622 ret = lwtunnel_build_state(encap_type, encap, AF_INET, in fib_encap_match()
Dudp.c1919 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_queue_rcv_skb()
2385 if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { in udp_destroy_sock()
2433 up->encap_type = val; in udp_lib_setsockopt()
2535 val = up->encap_type; in udp_lib_getsockopt()
Dfou.c561 tunnel_cfg.encap_type = 1; in fou_create()
/Linux-v4.19/include/net/
Dlwtunnel.h112 int lwtunnel_valid_encap_type(u16 encap_type,
116 int lwtunnel_build_state(u16 encap_type,
195 static inline int lwtunnel_valid_encap_type(u16 encap_type, in lwtunnel_valid_encap_type() argument
210 static inline int lwtunnel_build_state(u16 encap_type, in lwtunnel_build_state() argument
258 #define MODULE_ALIAS_RTNL_LWT(encap_type) MODULE_ALIAS("rtnl-lwt-" __stringify(encap_type)) argument
Dudp_tunnel.h77 __u8 encap_type; member
Dxfrm.h1476 int encap_type);
1628 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type);
1640 int encap_type);
/Linux-v4.19/drivers/net/ethernet/sfc/
Dfilter.h173 u32 encap_type:4; member
299 enum efx_encap_type encap_type) in efx_filter_set_encap_type() argument
302 spec->encap_type = encap_type; in efx_filter_set_encap_type()
309 return spec->encap_type; in efx_filter_get_encap_type()
Def10.c4056 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_push_prep_set_match_fields() local
4086 if (encap_type) { in efx_ef10_filter_push_prep_set_match_fields()
4091 htons(encap_type & EFX_ENCAP_FLAG_IPV6 ? in efx_ef10_filter_push_prep_set_match_fields()
4096 switch (encap_type & EFX_ENCAP_TYPES_MASK) { in efx_ef10_filter_push_prep_set_match_fields()
4218 enum efx_encap_type encap_type = efx_filter_get_encap_type(spec); in efx_ef10_filter_mcdi_flags_from_spec() local
4235 MAP_FILTER_TO_MCDI_FLAG(REM_HOST, SRC_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec()
4236 MAP_FILTER_TO_MCDI_FLAG(LOC_HOST, DST_IP, encap_type); in efx_ef10_filter_mcdi_flags_from_spec()
4237 MAP_FILTER_TO_MCDI_FLAG(REM_MAC, SRC_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec()
4238 MAP_FILTER_TO_MCDI_FLAG(REM_PORT, SRC_PORT, encap_type); in efx_ef10_filter_mcdi_flags_from_spec()
4239 MAP_FILTER_TO_MCDI_FLAG(LOC_MAC, DST_MAC, encap_type); in efx_ef10_filter_mcdi_flags_from_spec()
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_input.c223 int xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) in xfrm_input() argument
240 if (encap_type < 0) { in xfrm_input()
255 if (encap_type == -1) { in xfrm_input()
262 encap_type = 0; in xfrm_input()
361 if ((x->encap ? x->encap->encap_type : 0) != encap_type) { in xfrm_input()
413 encap_type = 0; in xfrm_input()
Dxfrm_state.c1547 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
/Linux-v4.19/include/linux/
Dudp.h50 __u8 encap_type; /* Is this an Encapsulation socket? */ member
/Linux-v4.19/include/uapi/linux/
Dxfrm.h250 __u16 encap_type; member
/Linux-v4.19/drivers/net/
Dgtp.c298 udp_sk(sk)->encap_type = 0; in gtp_encap_destroy()
332 switch (udp_sk(sk)->encap_type) { in gtp_encap_recv()
812 tuncfg.encap_type = type; in gtp_encap_enable_socket()
/Linux-v4.19/net/rxrpc/
Dlocal_object.c135 udp_sk(usk)->encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
/Linux-v4.19/net/l2tp/
Dl2tp_core.c1161 (udp_sk(sk))->encap_type = 0; in l2tp_tunnel_destruct()
1516 .encap_type = UDP_ENCAP_L2TPINUDP, in l2tp_tunnel_register()
/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_net.c296 tnl_cfg.encap_type = 1; in rxe_setup_udp_tunnel()
/Linux-v4.19/net/tipc/
Dudp_media.c734 tuncfg.encap_type = 1; in tipc_udp_enable()
/Linux-v4.19/net/ipv6/
Dudp.c566 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_queue_rcv_skb()
1461 if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { in udpv6_destroy_sock()
/Linux-v4.19/net/key/
Daf_key.c837 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg()
1018 if (natt && natt->encap_type) { in __pfkey_xfrm_state2msg()
1026 n_type->sadb_x_nat_t_type_type = natt->encap_type; in __pfkey_xfrm_state2msg()
1292 natt->encap_type = n_type->sadb_x_nat_t_type_type; in pfkey_msg2xfrm_state()

12