summary refs log tree commit diff stats
path: root/hw/virtio-net.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-03-16 00:43:25 +0200
committerMichael S. Tsirkin <mst@redhat.com>2012-03-16 00:45:23 +0200
commitca384784af5f472f0b94c9205f8c500c1b5a43b6 (patch)
tree246f44a339d31171d577f41635fb39340342e8b8 /hw/virtio-net.h
parentcd7898f714773f7a317b122eaa45e701fd4f9849 (diff)
downloadfocaccia-qemu-ca384784af5f472f0b94c9205f8c500c1b5a43b6.tar.gz
focaccia-qemu-ca384784af5f472f0b94c9205f8c500c1b5a43b6.zip
virtio-net: add DATA_VALID flag
Add DATA_VALID flag from the Linux header, to
keep us in sync with that.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio-net.h')
-rw-r--r--hw/virtio-net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio-net.h b/hw/virtio-net.h
index 44687414c9..36aa463812 100644
--- a/hw/virtio-net.h
+++ b/hw/virtio-net.h
@@ -79,6 +79,7 @@ struct virtio_net_config
 struct virtio_net_hdr
 {
 #define VIRTIO_NET_HDR_F_NEEDS_CSUM     1       // Use csum_start, csum_offset
+#define VIRTIO_NET_HDR_F_DATA_VALID	2	// Csum is valid
     uint8_t flags;
 #define VIRTIO_NET_HDR_GSO_NONE         0       // Not a GSO frame
 #define VIRTIO_NET_HDR_GSO_TCPV4        1       // GSO frame, IPv4 TCP (TSO)