aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio.h
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-02-27 11:49:21 +0100
committerDamjan Marion <dmarion@me.com>2020-03-21 11:36:04 +0000
commit7f6d145accc6e63b150ab4efc282f19cbe996b57 (patch)
treef42aabeff91bea82bea911f3c651b5d3075833fd /src/vnet/devices/virtio/virtio.h
parent76c6159d83c2dfe29f84dc4b05d399cdbbdf2878 (diff)
virtio: fix the out of order descriptors in tx
Type: fix Some vhost-backends give used descriptors back in out-of-order. This patch fixes the native virtio to handle out-of-order descriptors. Change-Id: I57323303349f6a385e412ee22772ab979ae8edbf Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.h')
-rw-r--r--src/vnet/devices/virtio/virtio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/virtio.h b/src/vnet/devices/virtio/virtio.h
index 4b8662699da..e28922bf654 100644
--- a/src/vnet/devices/virtio/virtio.h
+++ b/src/vnet/devices/virtio/virtio.h
@@ -112,6 +112,7 @@ typedef struct
u8 buffer_pool_index;
u16 size;
u16 queue_id;
+#define VRING_TX_OUT_OF_ORDER 1
u16 flags;
u32 call_file_index;
u32 *buffers;