Searched refs:geneveh (Results 1 – 2 of 2) sorted by relevance
98 struct genevehdr *geneveh; in mlx5e_gen_ip_tunnel_header_geneve() local100 geneveh = (struct genevehdr *)((char *)udp + sizeof(struct udphdr)); in mlx5e_gen_ip_tunnel_header_geneve()106 memset(geneveh, 0, sizeof(*geneveh)); in mlx5e_gen_ip_tunnel_header_geneve()107 geneveh->ver = MLX5E_GENEVE_VER; in mlx5e_gen_ip_tunnel_header_geneve()108 geneveh->opt_len = tun_info->options_len / 4; in mlx5e_gen_ip_tunnel_header_geneve()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()111 mlx5e_tunnel_id_to_vni(tun_info->key.tun_id, geneveh->vni); in mlx5e_gen_ip_tunnel_header_geneve()112 geneveh->proto_type = htons(ETH_P_TEB); in mlx5e_gen_ip_tunnel_header_geneve()115 if (!geneveh->opt_len) in mlx5e_gen_ip_tunnel_header_geneve()[all …]
353 struct genevehdr *geneveh; in geneve_udp_encap_recv() local364 geneveh = geneve_hdr(skb); in geneve_udp_encap_recv()365 if (unlikely(geneveh->ver != GENEVE_VER)) in geneve_udp_encap_recv()368 inner_proto = geneveh->proto_type; in geneve_udp_encap_recv()389 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()408 struct genevehdr *geneveh; in geneve_udp_encap_err_lookup() local416 geneveh = geneve_hdr(skb); in geneve_udp_encap_err_lookup()417 if (geneveh->ver != GENEVE_VER) in geneve_udp_encap_err_lookup()420 if (geneveh->proto_type != htons(ETH_P_TEB)) in geneve_udp_encap_err_lookup()740 static void geneve_build_header(struct genevehdr *geneveh, in geneve_build_header() argument[all …]