Searched refs:tun_flags (Results 1 – 10 of 10) sorted by relevance
14 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()
109 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()
91 if (tun_key->tun_flags & TUNNEL_VXLAN_OPT) in mlx5e_gen_ip_tunnel_header_vxlan()
746 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 …]
297 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()
2683 static int tun_flags(struct tun_struct *tun) in tun_flags() function2692 return sysfs_emit(buf, "0x%x\n", tun_flags(tun)); in tun_flags_show()2715 static DEVICE_ATTR_RO(tun_flags);2875 ifr->ifr_flags = tun_flags(tun); in tun_get_iff()
225 __be16 tun_flags; member508 __be16 tun_flags; member548 __be16 tun_flags; member
498 &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()
430 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()
1634 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()2577 if (info->key.tun_flags & TUNNEL_VXLAN_OPT) { in vxlan_xmit_one()2587 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()2629 } else if (info->key.tun_flags & TUNNEL_DONT_FRAGMENT) { in vxlan_xmit_one()