diff options
author | 2020-03-16 16:57:22 +0000 | |
---|---|---|
committer | 2020-03-27 09:32:09 +0000 | |
commit | edef5b00eda2220a8c56348ffdb33a076fc1e699 (patch) | |
tree | 1a9847ad414ffb34f6c5cd305e7cd36a2c7966ed /src/vnet/devices/virtio/pci.c | |
parent | 9ef52ab8589586f6659aa00426149fc36c7589fe (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: I74ba03a2111dc601be4396c0fa800c33db5554b4
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
(cherry picked from commit 7f6d145accc6e63b150ab4efc282f19cbe996b57)
Diffstat (limited to 'src/vnet/devices/virtio/pci.c')
-rw-r--r-- | src/vnet/devices/virtio/pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c index 7ebc0d359e7..10820c8d8f2 100644 --- a/src/vnet/devices/virtio/pci.c +++ b/src/vnet/devices/virtio/pci.c @@ -719,6 +719,7 @@ virtio_pci_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 queue_num) { virtio_log_debug (vim, vif, "tx-queue: number %u, size %u", queue_num, queue_size); + clib_memset_u32 (vring->buffers, ~0, queue_size); } else { |