projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd7898f
)
virtio-net: add DATA_VALID flag
author
Michael S. Tsirkin
<mst@redhat.com>
Thu, 15 Mar 2012 22:43:25 +0000
(
00:43
+0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 15 Mar 2012 22:45:23 +0000
(
00:45
+0200)
Add DATA_VALID flag from the Linux header, to
keep us in sync with that.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-net.h
patch
|
blob
|
history
diff --git
a/hw/virtio-net.h
b/hw/virtio-net.h
index 44687414c95cb5ac8f283cb9b839af95dc9af971..36aa463812e2ec6052e82b6cb6a5d9cb50792a72 100644
(file)
--- 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)