Lines Matching refs:geneveh
363 struct genevehdr *geneveh; in geneve_udp_encap_recv() local
374 geneveh = geneve_hdr(skb); in geneve_udp_encap_recv()
375 if (unlikely(geneveh->ver != GENEVE_VER)) in geneve_udp_encap_recv()
386 inner_proto = geneveh->proto_type; in geneve_udp_encap_recv()
394 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()
413 struct genevehdr *geneveh; in geneve_udp_encap_err_lookup() local
421 geneveh = geneve_hdr(skb); in geneve_udp_encap_err_lookup()
422 if (geneveh->ver != GENEVE_VER) in geneve_udp_encap_err_lookup()
425 if (geneveh->proto_type != htons(ETH_P_TEB)) in geneve_udp_encap_err_lookup()
745 static void geneve_build_header(struct genevehdr *geneveh, in geneve_build_header() argument
749 geneveh->ver = GENEVE_VER; in geneve_build_header()
750 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
751 geneveh->oam = test_bit(IP_TUNNEL_OAM_BIT, info->key.tun_flags); in geneve_build_header()
752 geneveh->critical = test_bit(IP_TUNNEL_CRIT_OPT_BIT, in geneve_build_header()
754 geneveh->rsvd1 = 0; in geneve_build_header()
755 tunnel_id_to_vni(info->key.tun_id, geneveh->vni); in geneve_build_header()
756 geneveh->proto_type = inner_proto; in geneve_build_header()
757 geneveh->rsvd2 = 0; in geneve_build_header()
760 ip_tunnel_info_opts_get(geneveh->options, info); in geneve_build_header()