Lines Matching defs:vh
309 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf;
311 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr);
312 vh->flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
313 vh->csum_start = ETH_HLEN + sizeof(struct iphdr);
314 vh->csum_offset = __builtin_offsetof(struct udphdr, check);
315 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP;
316 vh->gso_size = ETH_DATA_LEN - sizeof(struct iphdr);
317 cur += sizeof(*vh);
329 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf;
331 vh->flags = VIRTIO_NET_HDR_F_DATA_VALID;
332 vh->gso_type = VIRTIO_NET_HDR_GSO_NONE;
333 cur += sizeof(*vh);
346 struct virtio_net_hdr *vh = (struct virtio_net_hdr *)buf;
348 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr);
349 vh->flags = 0;
350 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP;
351 vh->gso_size = ETH_DATA_LEN - sizeof(struct iphdr);
352 cur += sizeof(*vh);