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 = test_bit(IP_TUNNEL_OAM_BIT, tun_info->key.tun_flags); in mlx5e_gen_ip_tunnel_header_geneve()110 geneveh->critical = test_bit(IP_TUNNEL_CRIT_OPT_BIT, in mlx5e_gen_ip_tunnel_header_geneve()112 mlx5e_tunnel_id_to_vni(tun_info->key.tun_id, geneveh->vni); in mlx5e_gen_ip_tunnel_header_geneve()113 geneveh->proto_type = htons(ETH_P_TEB); in mlx5e_gen_ip_tunnel_header_geneve()116 if (!geneveh->opt_len) in mlx5e_gen_ip_tunnel_header_geneve()[all …]
363 struct genevehdr *geneveh; in geneve_udp_encap_recv() local374 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() local421 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[all …]