Home
last modified time | relevance | path

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

/openbmc/linux/include/net/
H A 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A 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()
442 __be16 okflags = TUNNEL_KEY; /* We can't offload any other features. */ in mlxsw_sp_ipip_can_offload_gre6()
/openbmc/linux/net/bridge/
H A Dbr_vlan_tunnel.c73 metadata = __ip_tun_set_dst(0, 0, 0, 0, 0, TUNNEL_KEY, in __vlan_tunnel_info_add()
205 tunnel_dst = __ip_tun_set_dst(0, 0, 0, 0, 0, TUNNEL_KEY, in br_handle_egress_vlan_tunnel()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c47 if (tun_key->tun_flags & TUNNEL_KEY) { in mlx5e_gen_ip_tunnel_header_gretap()
/openbmc/linux/include/uapi/linux/
H A Dif_tunnel.h166 #define TUNNEL_KEY __cpu_to_be16(0x04) macro
/openbmc/linux/net/ipv4/
H A 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()
932 if (!(p->i_flags & TUNNEL_KEY)) in ip_tunnel_ctl()
934 if (!(p->o_flags & TUNNEL_KEY)) in ip_tunnel_ctl()
H A Dip_gre.c291 tpi->flags | TUNNEL_KEY, in erspan_rcv()
317 tpi->flags |= TUNNEL_KEY; in erspan_rcv()
387 flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY); in __ipgre_rcv()
507 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in gre_fb_xmit()
724 tunnel->parms.o_flags &= ~TUNNEL_KEY; in erspan_xmit()
1551 t->parms.o_flags |= TUNNEL_KEY; in erspan_fill_info()
/openbmc/linux/net/psample/
H A Dpsample.c224 if (tun_key->tun_flags & TUNNEL_KEY && in __psample_ip_tun_to_nlattr()
317 if (tun_key->tun_flags & TUNNEL_KEY) in psample_tunnel_meta_len()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c436 !(key.tunnel_flags & TUNNEL_KEY) || in vxlan_get_tunnel_src()
586 !(key.tunnel_flags & TUNNEL_KEY) || in ip6vxlan_get_tunnel_src()
/openbmc/linux/net/sched/
H A Dact_tunnel_key.c415 flags = TUNNEL_KEY; in tunnel_key_init()
744 if (((key->tun_flags & TUNNEL_KEY) && in tunnel_key_dump()
/openbmc/linux/net/ipv6/
H A Dip6_gre.c560 tpi->flags |= TUNNEL_KEY; in ip6erspan_rcv()
785 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in __gre6_xmit()
985 t->parms.o_flags &= ~TUNNEL_KEY; in ip6erspan_tunnel_xmit()
2156 o_flags |= TUNNEL_KEY; in ip6gre_fill_info()
/openbmc/linux/drivers/net/
H A Dbareudp.c140 tun_dst = udp_tun_rx_dst(skb, family, TUNNEL_KEY, 0, 0); in bareudp_udp_encap_recv()
H A Dgeneve.c230 flags = TUNNEL_KEY | (gnvh->oam ? TUNNEL_OAM : 0) | in geneve_rx()
/openbmc/linux/net/netfilter/
H A Dnft_tunnel.c457 info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in nft_tunnel_obj_init()
/openbmc/linux/net/openvswitch/
H A Dflow_netlink.c700 tun_flags |= TUNNEL_KEY; in ip_tun_from_nlattr()
832 tun_flags & ~TUNNEL_KEY) { in ip_tun_from_nlattr()
877 if (output->tun_flags & TUNNEL_KEY && in __ip_tun_to_nlattr()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c421 NFP_FL_TUNNEL_KEY != TUNNEL_KEY || in nfp_fl_set_tun()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c5520 key.enc_tp.dst, TUNNEL_KEY, in mlx5e_tc_restore_tunnel()
5527 key.enc_tp.dst, 0, TUNNEL_KEY, in mlx5e_tc_restore_tunnel()
/openbmc/linux/drivers/net/vxlan/
H A Dvxlan_core.c1726 tun_dst = udp_tun_rx_dst(skb, vxlan_get_sk_family(vs), TUNNEL_KEY, in vxlan_rcv()
/openbmc/linux/net/core/
H A Dfilter.c4779 info->key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in BPF_CALL_4()
4787 info->key.tun_flags &= ~TUNNEL_KEY; in BPF_CALL_4()