Lines Matching refs:geneveh
353 struct genevehdr *geneveh; in geneve_udp_encap_recv() local
364 geneveh = geneve_hdr(skb); in geneve_udp_encap_recv()
365 if (unlikely(geneveh->ver != GENEVE_VER)) in geneve_udp_encap_recv()
376 inner_proto = geneveh->proto_type; in geneve_udp_encap_recv()
384 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()
403 struct genevehdr *geneveh; in geneve_udp_encap_err_lookup() local
411 geneveh = geneve_hdr(skb); in geneve_udp_encap_err_lookup()
412 if (geneveh->ver != GENEVE_VER) in geneve_udp_encap_err_lookup()
415 if (geneveh->proto_type != htons(ETH_P_TEB)) in geneve_udp_encap_err_lookup()
735 static void geneve_build_header(struct genevehdr *geneveh, in geneve_build_header() argument
739 geneveh->ver = GENEVE_VER; in geneve_build_header()
740 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
741 geneveh->oam = !!(info->key.tun_flags & TUNNEL_OAM); in geneve_build_header()
742 geneveh->critical = !!(info->key.tun_flags & TUNNEL_CRIT_OPT); in geneve_build_header()
743 geneveh->rsvd1 = 0; in geneve_build_header()
744 tunnel_id_to_vni(info->key.tun_id, geneveh->vni); in geneve_build_header()
745 geneveh->proto_type = inner_proto; in geneve_build_header()
746 geneveh->rsvd2 = 0; in geneve_build_header()
749 ip_tunnel_info_opts_get(geneveh->options, info); in geneve_build_header()