Lines Matching refs:vh
406 struct virtio_net_hdr vh = {0}; in send_packet() local
419 vh.flags = VIRTIO_NET_HDR_F_NEEDS_CSUM; in send_packet()
421 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct ipv6hdr); in send_packet()
424 vh.csum_start = sizeof(struct ethhdr) + sizeof(struct iphdr); in send_packet()
429 vh.csum_start += ENC_HEADER_LEN; in send_packet()
432 vh.csum_offset = __builtin_offsetof(struct tcphdr, check); in send_packet()
433 vh.hdr_len = vh.csum_start + sizeof(struct tcphdr); in send_packet()
435 vh.csum_offset = __builtin_offsetof(struct udphdr, check); in send_packet()
436 vh.hdr_len = vh.csum_start + sizeof(struct udphdr); in send_packet()
443 iov[0].iov_base = &vh; in send_packet()
444 iov[0].iov_len = sizeof(vh); in send_packet()
461 if (ret != sizeof(vh) + sizeof(eth) + len) in send_packet()