Home
last modified time | relevance | path

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

/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()
/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.c2689 static int tun_flags(struct tun_struct *tun) in tun_flags() function
2698 return sprintf(buf, "0x%x\n", tun_flags(tun)); in tun_show_flags()
2721 static DEVICE_ATTR(tun_flags, 0444, tun_show_flags, NULL);
2878 ifr->ifr_flags = tun_flags(tun); in tun_get_iff()
/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()
/drivers/net/vxlan/
Dvxlan_core.c1750 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
2666 if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in vxlan_xmit_one()
2674 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
2716 } else if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) { in vxlan_xmit_one()