Home
last modified time | relevance | path

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

12

/linux-6.1.9/net/psample/
Dpsample.c223 if (tun_key->tun_flags & TUNNEL_KEY && in __psample_ip_tun_to_nlattr()
259 if ((tun_key->tun_flags & TUNNEL_DONT_FRAGMENT) && in __psample_ip_tun_to_nlattr()
262 if ((tun_key->tun_flags & TUNNEL_CSUM) && in __psample_ip_tun_to_nlattr()
271 if ((tun_key->tun_flags & TUNNEL_OAM) && in __psample_ip_tun_to_nlattr()
275 if (tun_key->tun_flags & TUNNEL_GENEVE_OPT && in __psample_ip_tun_to_nlattr()
279 else if (tun_key->tun_flags & TUNNEL_ERSPAN_OPT && in __psample_ip_tun_to_nlattr()
316 if (tun_key->tun_flags & TUNNEL_KEY) in psample_tunnel_meta_len()
339 if (tun_key->tun_flags & TUNNEL_DONT_FRAGMENT) in psample_tunnel_meta_len()
341 if (tun_key->tun_flags & TUNNEL_CSUM) in psample_tunnel_meta_len()
347 if (tun_key->tun_flags & TUNNEL_OAM) in psample_tunnel_meta_len()
[all …]
/linux-6.1.9/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()
347 a_has_opts = !!(a->ip_tun_key->tun_flags & TUNNEL_GENEVE_OPT); in mlx5e_tc_tun_encap_info_equal_geneve()
348 b_has_opts = !!(b->ip_tun_key->tun_flags & TUNNEL_GENEVE_OPT); in mlx5e_tc_tun_encap_info_equal_geneve()
Dtc_tun_vxlan.c91 if (tun_key->tun_flags & TUNNEL_VXLAN_OPT) in mlx5e_gen_ip_tunnel_header_vxlan()
/linux-6.1.9/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.c904 dest->tun_flags = udest->tun_flags; in __ip_vs_update_dest()
3312 dest->tun_flags) || in ip_vs_genl_fill_dest()
3460 udest->tun_flags = nla_get_u16(nla_tun_flags); in ip_vs_genl_parse_dest()
/linux-6.1.9/net/netfilter/
Dnft_tunnel.c457 info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in nft_tunnel_obj_init()
479 u32 tun_flags; in nft_tunnel_obj_init() local
481 tun_flags = ntohl(nla_get_be32(tb[NFTA_TUNNEL_KEY_FLAGS])); in nft_tunnel_obj_init()
482 if (tun_flags & ~NFT_TUNNEL_F_MASK) in nft_tunnel_obj_init()
485 if (tun_flags & NFT_TUNNEL_F_ZERO_CSUM_TX) in nft_tunnel_obj_init()
486 info.key.tun_flags &= ~TUNNEL_CSUM; in nft_tunnel_obj_init()
487 if (tun_flags & NFT_TUNNEL_F_DONT_FRAGMENT) in nft_tunnel_obj_init()
488 info.key.tun_flags |= TUNNEL_DONT_FRAGMENT; in nft_tunnel_obj_init()
489 if (tun_flags & NFT_TUNNEL_F_SEQ_NUMBER) in nft_tunnel_obj_init()
490 info.key.tun_flags |= TUNNEL_SEQ; in nft_tunnel_obj_init()
[all …]
/linux-6.1.9/net/ipv4/
Dip_tunnel_core.c147 dst->key.tun_flags = src->key.tun_flags; in iptunnel_metadata_reply()
500 info->key.tun_flags |= TUNNEL_GENEVE_OPT; in ip_tun_parse_opts_geneve()
528 info->key.tun_flags |= TUNNEL_VXLAN_OPT; in ip_tun_parse_opts_vxlan()
577 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in ip_tun_parse_opts_erspan()
709 tun_info->key.tun_flags |= in ip_tun_build_state()
815 if (!(tun_info->key.tun_flags & TUNNEL_OPTIONS_PRESENT)) in ip_tun_fill_encap_opts()
822 if (tun_info->key.tun_flags & TUNNEL_GENEVE_OPT) in ip_tun_fill_encap_opts()
824 else if (tun_info->key.tun_flags & TUNNEL_VXLAN_OPT) in ip_tun_fill_encap_opts()
826 else if (tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT) in ip_tun_fill_encap_opts()
849 nla_put_be16(skb, LWTUNNEL_IP_FLAGS, tun_info->key.tun_flags) || in ip_tun_fill_encap_info()
[all …]
Dip_gre.c336 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in erspan_rcv()
492 tunnel_hlen = gre_calc_hlen(key->tun_flags); in gre_fb_xmit()
498 if (gre_handle_offloads(skb, !!(tun_info->key.tun_flags & TUNNEL_CSUM))) in gre_fb_xmit()
501 flags = tun_info->key.tun_flags & in gre_fb_xmit()
534 if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) in erspan_fb_xmit()
Dudp_tunnel_core.c202 info->key.tun_flags |= TUNNEL_CSUM; in udp_tun_rx_dst()
Dip_tunnel.c597 if (key->tun_flags & TUNNEL_DONT_FRAGMENT) in ip_md_tunnel_xmit()
/linux-6.1.9/include/net/
Dip_tunnels.h51 __be16 tun_flags; member
178 __be64 tun_id, __be16 tun_flags) in ip_tunnel_key_init() argument
188 key->tun_flags = tun_flags; in ip_tunnel_key_init()
211 if (info->key.tun_flags & TUNNEL_NOCACHE) in ip_tunnel_dst_cache_usable()
506 info->key.tun_flags |= flags; in ip_tunnel_info_opts_set()
Ddst_metadata.h245 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
/linux-6.1.9/net/sched/
Dact_tunnel_key.c303 info->key.tun_flags |= TUNNEL_GENEVE_OPT; in tunnel_key_opts_set()
311 info->key.tun_flags |= TUNNEL_VXLAN_OPT; in tunnel_key_opts_set()
319 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in tunnel_key_opts_set()
661 if (info->key.tun_flags & TUNNEL_GENEVE_OPT) { in tunnel_key_opts_dump()
665 } else if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in tunnel_key_opts_dump()
669 } else if (info->key.tun_flags & TUNNEL_ERSPAN_OPT) { in tunnel_key_opts_dump()
739 if (((key->tun_flags & TUNNEL_KEY) && in tunnel_key_dump()
747 !(key->tun_flags & TUNNEL_CSUM)) || in tunnel_key_dump()
/linux-6.1.9/drivers/net/
Dgeneve.c746 geneveh->oam = !!(info->key.tun_flags & TUNNEL_OAM); in geneve_build_header()
747 geneveh->critical = !!(info->key.tun_flags & TUNNEL_CRIT_OPT); in geneve_build_header()
753 if (info->key.tun_flags & TUNNEL_GENEVE_OPT) in geneve_build_header()
762 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in geneve_build_skb()
966 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in geneve_xmit_skb()
999 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve_xmit_skb()
1079 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve6_xmit_skb()
1359 return !(info->key.tun_id || info->key.tun_flags || info->key.tos || in is_tnl_info_zero()
1497 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1572 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
[all …]
Dbareudp.c297 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp_xmit_skb()
323 df = key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0; in bareudp_xmit_skb()
345 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp_xmit_skb()
360 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp6_xmit_skb()
407 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp6_xmit_skb()
Dtun.c2669 static int tun_flags(struct tun_struct *tun) in tun_flags() function
2678 return sysfs_emit(buf, "0x%x\n", tun_flags(tun)); in tun_flags_show()
2701 static DEVICE_ATTR_RO(tun_flags);
2861 ifr->ifr_flags = tun_flags(tun); in tun_get_iff()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dcmsg.h225 __be16 tun_flags; member
508 __be16 tun_flags; member
548 __be16 tun_flags; member
Dmatch.c498 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv4_gre_tun()
533 &ext->tun_flags, &msk->tun_flags, rule); in nfp_flower_compile_ipv6_gre_tun()
Daction.c430 if (ip_tun->key.tun_flags & ~NFP_FL_SUPPORTED_UDP_TUN_FLAGS) { in nfp_fl_set_tun()
445 if (ip_tun->key.tun_flags & NFP_FL_TUNNEL_KEY) in nfp_fl_set_tun()
489 set_tun->tun_flags = ip_tun->key.tun_flags; in nfp_fl_set_tun()
/linux-6.1.9/net/openvswitch/
Dflow_netlink.c671 __be16 tun_flags = 0; in ip_tun_from_nlattr() local
697 tun_flags |= TUNNEL_KEY; in ip_tun_from_nlattr()
729 tun_flags |= TUNNEL_DONT_FRAGMENT; in ip_tun_from_nlattr()
732 tun_flags |= TUNNEL_CSUM; in ip_tun_from_nlattr()
743 tun_flags |= TUNNEL_OAM; in ip_tun_from_nlattr()
755 tun_flags |= TUNNEL_GENEVE_OPT; in ip_tun_from_nlattr()
768 tun_flags |= TUNNEL_VXLAN_OPT; in ip_tun_from_nlattr()
784 tun_flags |= TUNNEL_ERSPAN_OPT; in ip_tun_from_nlattr()
798 SW_FLOW_KEY_PUT(match, tun_key.tun_flags, tun_flags, is_mask); in ip_tun_from_nlattr()
829 tun_flags & ~TUNNEL_KEY) { in ip_tun_from_nlattr()
[all …]
/linux-6.1.9/include/uapi/linux/
Dopenvswitch.h716 __u16 tun_flags; member
/linux-6.1.9/net/ipv6/
Dip6_gre.c580 info->key.tun_flags |= TUNNEL_ERSPAN_OPT; in ip6erspan_rcv()
781 flags = key->tun_flags & in __gre6_xmit()
1028 if (!(tun_info->key.tun_flags & TUNNEL_ERSPAN_OPT)) in ip6erspan_tunnel_xmit()
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c1559 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
2530 if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in vxlan_xmit_one()
2540 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
2582 } else if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) { in vxlan_xmit_one()

12