Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/net/psample/
Dpsample.c221 if (tun_key->tun_flags & TUNNEL_KEY && in __psample_ip_tun_to_nlattr()
257 if ((tun_key->tun_flags & TUNNEL_DONT_FRAGMENT) && in __psample_ip_tun_to_nlattr()
260 if ((tun_key->tun_flags & TUNNEL_CSUM) && in __psample_ip_tun_to_nlattr()
269 if ((tun_key->tun_flags & TUNNEL_OAM) && in __psample_ip_tun_to_nlattr()
273 if (tun_key->tun_flags & TUNNEL_GENEVE_OPT && in __psample_ip_tun_to_nlattr()
277 else if (tun_key->tun_flags & TUNNEL_ERSPAN_OPT && in __psample_ip_tun_to_nlattr()
314 if (tun_key->tun_flags & TUNNEL_KEY) in psample_tunnel_meta_len()
337 if (tun_key->tun_flags & TUNNEL_DONT_FRAGMENT) in psample_tunnel_meta_len()
339 if (tun_key->tun_flags & TUNNEL_CSUM) in psample_tunnel_meta_len()
345 if (tun_key->tun_flags & TUNNEL_OAM) in psample_tunnel_meta_len()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_gre.c14 return gre_calc_hlen(e->tun_info->key.tun_flags); in mlx5e_tc_tun_calc_hlen_gretap()
39 if (tun_key->tun_flags & (TUNNEL_CSUM | TUNNEL_SEQ)) in mlx5e_gen_ip_tunnel_header_gretap()
46 greh->flags = gre_tnl_flags_to_gre_flags(tun_key->tun_flags); in mlx5e_gen_ip_tunnel_header_gretap()
47 if (tun_key->tun_flags & TUNNEL_KEY) { in mlx5e_gen_ip_tunnel_header_gretap()
Dtc_tun_geneve.c109 geneveh->oam = !!(tun_info->key.tun_flags & TUNNEL_OAM); in mlx5e_gen_ip_tunnel_header_geneve()
110 geneveh->critical = !!(tun_info->key.tun_flags & TUNNEL_CRIT_OPT); in mlx5e_gen_ip_tunnel_header_geneve()
114 if (tun_info->key.tun_flags & TUNNEL_GENEVE_OPT) { in mlx5e_gen_ip_tunnel_header_geneve()
Dtc_tun_vxlan.c91 if (tun_key->tun_flags & TUNNEL_VXLAN_OPT) in mlx5e_gen_ip_tunnel_header_vxlan()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_xmit.c388 if ((dest->tun_flags & in __ip_vs_get_out_rt()
395 if (dest->tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_CSUM) in __ip_vs_get_out_rt()
551 if ((dest->tun_flags & in __ip_vs_get_out_rt_v6()
558 if (dest->tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_CSUM) in __ip_vs_get_out_rt_v6()
1033 if ((cp->dest->tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM) && in ipvs_gue_encap()
1104 if (cp->dest->tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_CSUM) in ipvs_gre_encap()
1150 int tun_flags; in ip_vs_tunnel_xmit() local
1173 tun_flags = cp->dest->tun_flags; in ip_vs_tunnel_xmit()
1178 if ((tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_REMCSUM) && in ip_vs_tunnel_xmit()
1189 if (tun_flags & IP_VS_TUNNEL_ENCAP_FLAG_CSUM) in ip_vs_tunnel_xmit()
[all …]
Dip_vs_ctl.c903 dest->tun_flags = udest->tun_flags; in __ip_vs_update_dest()
3310 dest->tun_flags) || in ip_vs_genl_fill_dest()
3458 udest->tun_flags = nla_get_u16(nla_tun_flags); in ip_vs_genl_parse_dest()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_tunnel.c428 info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in nft_tunnel_obj_init()
450 u32 tun_flags; in nft_tunnel_obj_init() local
452 tun_flags = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_FLAGS])); in nft_tunnel_obj_init()
453 if (tun_flags & ~NFT_TUNNEL_F_MASK) in nft_tunnel_obj_init()
456 if (tun_flags & NFT_TUNNEL_F_ZERO_CSUM_TX) in nft_tunnel_obj_init()
457 info.key.tun_flags &= ~TUNNEL_CSUM; in nft_tunnel_obj_init()
458 if (tun_flags & NFT_TUNNEL_F_DONT_FRAGMENT) in nft_tunnel_obj_init()
459 info.key.tun_flags |= TUNNEL_DONT_FRAGMENT; in nft_tunnel_obj_init()
460 if (tun_flags & NFT_TUNNEL_F_SEQ_NUMBER) in nft_tunnel_obj_init()
461 info.key.tun_flags |= TUNNEL_SEQ; in nft_tunnel_obj_init()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dip_tunnel_core.c147 dst->key.tun_flags = src->key.tun_flags; in iptunnel_metadata_reply()
509 info->key.tun_flags |= TUNNEL_GENEVE_OPT; in ip_tun_parse_opts_geneve()
537 info->key.tun_flags |= TUNNEL_VXLAN_OPT; in ip_tun_parse_opts_vxlan()
586 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in ip_tun_parse_opts_erspan()
717 tun_info->key.tun_flags |= in ip_tun_build_state()
823 if (!(tun_info->key.tun_flags & TUNNEL_OPTIONS_PRESENT)) in ip_tun_fill_encap_opts()
830 if (tun_info->key.tun_flags & TUNNEL_GENEVE_OPT) in ip_tun_fill_encap_opts()
832 else if (tun_info->key.tun_flags & TUNNEL_VXLAN_OPT) in ip_tun_fill_encap_opts()
834 else if (tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT) in ip_tun_fill_encap_opts()
857 nla_put_be16(skb, LWTUNNEL_IP_FLAGS, tun_info->key.tun_flags) || in ip_tun_fill_encap_info()
[all …]
Dip_gre.c334 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in erspan_rcv()
487 tunnel_hlen = gre_calc_hlen(key->tun_flags); in gre_fb_xmit()
493 if (gre_handle_offloads(skb, !!(tun_info->key.tun_flags & TUNNEL_CSUM))) in gre_fb_xmit()
496 flags = tun_info->key.tun_flags & in gre_fb_xmit()
529 if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) in erspan_fb_xmit()
Dudp_tunnel_core.c220 info->key.tun_flags |= TUNNEL_CSUM; in udp_tun_rx_dst()
/kernel/linux/linux-5.10/include/net/
Dip_tunnels.h51 __be16 tun_flags; member
174 __be64 tun_id, __be16 tun_flags) in ip_tunnel_key_init() argument
184 key->tun_flags = tun_flags; in ip_tunnel_key_init()
207 if (info->key.tun_flags & TUNNEL_NOCACHE) in ip_tunnel_dst_cache_usable()
484 info->key.tun_flags |= flags; in ip_tunnel_info_opts_set()
Ddst_metadata.h192 info->key.tun_flags = flags; in __ipv6_tun_set_dst()
Dip_vs.h604 u16 tun_flags; /* tunnel flags */ member
667 __u16 tun_flags; /* tunnel flags */ member
/kernel/linux/linux-5.10/net/sched/
Dact_tunnel_key.c304 info->key.tun_flags |= TUNNEL_GENEVE_OPT; in tunnel_key_opts_set()
312 info->key.tun_flags |= TUNNEL_VXLAN_OPT; in tunnel_key_opts_set()
320 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in tunnel_key_opts_set()
662 if (info->key.tun_flags & TUNNEL_GENEVE_OPT) { in tunnel_key_opts_dump()
666 } else if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in tunnel_key_opts_dump()
670 } else if (info->key.tun_flags & TUNNEL_ERSPAN_OPT) { in tunnel_key_opts_dump()
740 if (((key->tun_flags & TUNNEL_KEY) && in tunnel_key_dump()
748 !(key->tun_flags & TUNNEL_CSUM)) || in tunnel_key_dump()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.h226 __be16 tun_flags; member
503 __be16 tun_flags; member
543 __be16 tun_flags; member
Dmatch.c424 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv4_gre_tun()
468 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv6_gre_tun()
Daction.c481 if (!(ip_tun->key.tun_flags & NFP_FL_TUNNEL_KEY) || in nfp_fl_set_tun()
482 ip_tun->key.tun_flags & ~NFP_FL_SUPPORTED_UDP_TUN_FLAGS) { in nfp_fl_set_tun()
486 set_tun->tun_flags = ip_tun->key.tun_flags; in nfp_fl_set_tun()
/kernel/linux/linux-5.10/drivers/net/
Dgeneve.c727 geneveh->oam = !!(info->key.tun_flags & TUNNEL_OAM); in geneve_build_header()
728 geneveh->critical = !!(info->key.tun_flags & TUNNEL_CRIT_OPT); in geneve_build_header()
734 if (info->key.tun_flags & TUNNEL_GENEVE_OPT) in geneve_build_header()
742 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in geneve_build_skb()
943 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in geneve_xmit_skb()
975 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve_xmit_skb()
1054 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve6_xmit_skb()
1331 return !(info->key.tun_id || info->key.tun_flags || info->key.tos || in is_tnl_info_zero()
1461 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1536 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
[all …]
Dbareudp.c288 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp_xmit_skb()
314 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in bareudp_xmit_skb()
336 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp_xmit_skb()
351 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp6_xmit_skb()
398 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp6_xmit_skb()
Dtun.c2688 static int tun_flags(struct tun_struct *tun) in tun_flags() function
2697 return sprintf(buf, "0x%x\n", tun_flags(tun)); in tun_show_flags()
2720 static DEVICE_ATTR(tun_flags, 0444, tun_show_flags, NULL);
2877 ifr->ifr_flags = tun_flags(tun); in tun_get_iff()
Dvxlan.c1724 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
2668 if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in vxlan_xmit_one()
2676 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
2718 } else if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) { in vxlan_xmit_one()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow_netlink.c661 __be16 tun_flags = 0; in ip_tun_from_nlattr() local
687 tun_flags |= TUNNEL_KEY; in ip_tun_from_nlattr()
719 tun_flags |= TUNNEL_DONT_FRAGMENT; in ip_tun_from_nlattr()
722 tun_flags |= TUNNEL_CSUM; in ip_tun_from_nlattr()
733 tun_flags |= TUNNEL_OAM; in ip_tun_from_nlattr()
745 tun_flags |= TUNNEL_GENEVE_OPT; in ip_tun_from_nlattr()
758 tun_flags |= TUNNEL_VXLAN_OPT; in ip_tun_from_nlattr()
774 tun_flags |= TUNNEL_ERSPAN_OPT; in ip_tun_from_nlattr()
788 SW_FLOW_KEY_PUT(match, tun_key.tun_flags, tun_flags, is_mask); in ip_tun_from_nlattr()
819 tun_flags & ~TUNNEL_KEY) { in ip_tun_from_nlattr()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dopenvswitch.h689 __u16 tun_flags; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dopenvswitch.h373 __u16 tun_flags; member
/kernel/linux/linux-5.10/net/ipv6/
Dip6_gre.c585 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in ip6erspan_rcv()
759 flags = key->tun_flags & in __gre6_xmit()
1006 if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) in ip6erspan_tunnel_xmit()

12