Skip to contentSkip to conversation

virtio-net: Add missing flag define to struct

PATCH In review Sameeh Jubran 2 participants 2 messages Dec 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-net: Add missing flag define to struct

From: sameehj <[email protected]>

The flag VIRTIO_NET_HDR_F_DATA_VALID is aleady mentioned in the virtio-net spec however it is not defined in the struct. This flag is already defined and used in virtio-net device in Qemu as well as some of it's drivers.

---
 content.tex | 1 +
 1 file changed, 1 insertion(+)
content.tex +1 -0
index c840588..788d8b5 100644
@@ -3305,6 +3305,7 @@ itself is preceded by a header:
 \begin{lstlisting}
 struct virtio_net_hdr {
 #define VIRTIO_NET_HDR_F_NEEDS_CSUM    1
+#define VIRTIO_NET_HDR_F_DATA_VALID    2
         u8 flags;
 #define VIRTIO_NET_HDR_GSO_NONE        0
 #define VIRTIO_NET_HDR_GSO_TCPV4       1
Signature · 6 lines
2.13.6


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Sameeh Jubran

From: sameehj <[email protected]>

The flag VIRTIO_NET_HDR_F_DATA_VALID is aleady mentioned in the virtio-net spec however it is not defined in the struct. This flag is already defined and used in virtio-net device in Qemu as well as some of it's drivers.

---
 content.tex | 1 +
 1 file changed, 1 insertion(+)