Lines Matching defs:vh
408 struct virtio_net_hdr vh = {0};
421 vh.flags = VIRTIO_NET_HDR_F_NEEDS_CSUM;
423 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct ipv6hdr);
426 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct iphdr);
431 vh.csum_start += ENC_HEADER_LEN;
434 vh.csum_offset = __builtin_offsetof(struct tcphdr, check);
435 vh.hdr_len = vh.csum_start + sizeof(struct tcphdr);
437 vh.csum_offset = __builtin_offsetof(struct udphdr, check);
438 vh.hdr_len = vh.csum_start + sizeof(struct udphdr);
445 iov[0].iov_base = &vh;
446 iov[0].iov_len = sizeof(vh);
463 if (ret != sizeof(vh) + sizeof(eth) + len)