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