Home
last modified time | relevance | path

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

12

/Linux-v5.4/net/core/
Dlwtunnel.c28 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/
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()
Dxfrm4_protocol.c62 int encap_type) in xfrm4_rcv_encap() argument
76 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
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()
Dudp_tunnel.c78 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
Desp4.c230 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()
Dfib_semantics.c567 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()
Dudp.c2005 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()
Dfou.c593 tunnel_cfg.encap_type = 1; in fou_create()
/Linux-v5.4/include/net/
Dlwtunnel.h112 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
Dudp_tunnel.h80 __u8 encap_type; member
Dxfrm.h1398 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/
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()
Def10.c4053 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/
Dxfrm_input.c455 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()
Dxfrm_state.c1660 x->encap->encap_type == x1->encap->encap_type) in xfrm_state_update()
/Linux-v5.4/include/linux/
Dudp.h46 __u8 encap_type; /* Is this an Encapsulation socket? */ member
/Linux-v5.4/include/uapi/linux/
Dxfrm.h250 __u16 encap_type; member
/Linux-v5.4/drivers/net/
Dgtp.c299 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/
Dlocal_object.c132 udp_sk(usk)->encap_type = UDP_ENCAP_RXRPC; in rxrpc_open_socket()
/Linux-v5.4/drivers/infiniband/sw/rxe/
Drxe_net.c257 tnl_cfg.encap_type = 1; in rxe_setup_udp_tunnel()
/Linux-v5.4/net/l2tp/
Dl2tp_core.c1161 (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/
Dudp_media.c755 tuncfg.encap_type = 1; in tipc_udp_enable()
/Linux-v5.4/net/ipv6/
Dudp.c608 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/
Daf_key.c823 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()

12