Home
last modified time | relevance | path

Searched refs:TUNNEL_KEY (Results 1 – 19 of 19) sorted by relevance

/linux-6.1.9/include/net/
Dgre.h58 if (o_flags & TUNNEL_KEY) in gre_calc_hlen()
74 tflags |= TUNNEL_KEY; in gre_flags_to_tnl_flags()
95 if (tflags & TUNNEL_KEY) in gre_tnl_flags_to_gre_flags()
123 if (flags & (TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_SEQ)) { in gre_build_header()
130 if (flags & TUNNEL_KEY) { in gre_build_header()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_ipip.c29 return !!(parms->i_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms4_has_ikey()
34 return !!(parms->i_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms6_has_ikey()
39 return !!(parms->o_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms4_has_okey()
44 return !!(parms->o_flags & TUNNEL_KEY); in mlxsw_sp_ipip_parms6_has_okey()
241 __be16 okflags = TUNNEL_KEY; /* We can't offload any other features. */ in mlxsw_sp_ipip_can_offload_gre4()
528 __be16 okflags = TUNNEL_KEY; /* We can't offload any other features. */ in mlxsw_sp2_ipip_can_offload_gre6()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_gre.c47 if (tun_key->tun_flags & TUNNEL_KEY) { in mlx5e_gen_ip_tunnel_header_gretap()
/linux-6.1.9/net/ipv4/
Dip_tunnel.c62 if (p->i_flags & TUNNEL_KEY) { in ip_tunnel_key_match()
63 if (flags & TUNNEL_KEY) in ip_tunnel_key_match()
69 return !(flags & TUNNEL_KEY); in ip_tunnel_key_match()
186 if (!(parms->i_flags & TUNNEL_KEY) && (parms->i_flags & VTI_ISVTI)) in ip_bucket()
887 if (!(p->i_flags & TUNNEL_KEY)) in ip_tunnel_ctl()
889 if (!(p->o_flags & TUNNEL_KEY)) in ip_tunnel_ctl()
Dip_gre.c286 tpi->flags | TUNNEL_KEY, in erspan_rcv()
312 tpi->flags |= TUNNEL_KEY; in erspan_rcv()
382 flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY); in __ipgre_rcv()
502 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in gre_fb_xmit()
714 tunnel->parms.o_flags &= ~TUNNEL_KEY; in erspan_xmit()
1541 t->parms.o_flags |= TUNNEL_KEY; in erspan_fill_info()
/linux-6.1.9/include/uapi/linux/
Dif_tunnel.h166 #define TUNNEL_KEY __cpu_to_be16(0x04) macro
/linux-6.1.9/net/bridge/
Dbr_vlan_tunnel.c73 metadata = __ip_tun_set_dst(0, 0, 0, 0, 0, TUNNEL_KEY, in __vlan_tunnel_info_add()
/linux-6.1.9/net/psample/
Dpsample.c223 if (tun_key->tun_flags & TUNNEL_KEY && in __psample_ip_tun_to_nlattr()
316 if (tun_key->tun_flags & TUNNEL_KEY) in psample_tunnel_meta_len()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c404 !(key.tunnel_flags & TUNNEL_KEY) || in vxlan_get_tunnel_src()
556 !(key.tunnel_flags & TUNNEL_KEY) || in ip6vxlan_get_tunnel_src()
/linux-6.1.9/net/sched/
Dact_tunnel_key.c413 flags = TUNNEL_KEY; in tunnel_key_init()
739 if (((key->tun_flags & TUNNEL_KEY) && in tunnel_key_dump()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c714 key.enc_tp.dst, TUNNEL_KEY, in mlx5e_restore_tunnel()
720 key.enc_tp.dst, 0, TUNNEL_KEY, in mlx5e_restore_tunnel()
/linux-6.1.9/net/ipv6/
Dip6_gre.c557 tpi->flags |= TUNNEL_KEY; in ip6erspan_rcv()
782 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in __gre6_xmit()
1003 t->parms.o_flags &= ~TUNNEL_KEY; in ip6erspan_tunnel_xmit()
2170 o_flags |= TUNNEL_KEY; in ip6gre_fill_info()
/linux-6.1.9/net/netfilter/
Dnft_tunnel.c457 info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in nft_tunnel_obj_init()
/linux-6.1.9/drivers/net/
Dbareudp.c140 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv()
Dgeneve.c230 flags = TUNNEL_KEY | (gnvh->oam ? TUNNEL_OAM : 0) | in geneve_rx()
/linux-6.1.9/net/openvswitch/
Dflow_netlink.c697 tun_flags |= TUNNEL_KEY; in ip_tun_from_nlattr()
829 tun_flags & ~TUNNEL_KEY) { in ip_tun_from_nlattr()
874 if (output->tun_flags & TUNNEL_KEY && in __ip_tun_to_nlattr()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Daction.c421 NFP_FL_TUNNEL_KEY != TUNNEL_KEY || in nfp_fl_set_tun()
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c1721 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
/linux-6.1.9/net/core/
Dfilter.c4652 info->key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in BPF_CALL_4()