Lines Matching defs:vh
78 struct virtio_net_hdr *vh = header;
80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr);
83 vh->flags |= VIRTIO_NET_HDR_F_NEEDS_CSUM;
84 vh->csum_start = ETH_HLEN + sizeof(struct iphdr);
85 vh->csum_offset = __builtin_offsetof(struct udphdr, check);
89 vh->csum_start += sizeof(struct udphdr) + cfg_payload_len -
90 vh->csum_offset - 1;
94 vh->gso_type = VIRTIO_NET_HDR_GSO_UDP;
95 vh->gso_size = cfg_mtu - sizeof(struct iphdr);
98 return sizeof(*vh);