From 7f6d145accc6e63b150ab4efc282f19cbe996b57 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Thu, 27 Feb 2020 11:49:21 +0100 Subject: 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 --- src/vnet/devices/virtio/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/devices/virtio/pci.c') diff --git a/src/vnet/devices/virtio/pci.c b/src/vnet/devices/virtio/pci.c index c956e7b75fa..65dab0ae769 100644 --- a/src/vnet/devices/virtio/pci.c +++ b/src/vnet/devices/virtio/pci.c @@ -823,6 +823,7 @@ virtio_pci_vring_init (vlib_main_t * vm, virtio_if_t * vif, u16 queue_num) { virtio_log_debug (vif, "tx-queue: number %u, size %u", queue_num, queue_size); + clib_memset_u32 (vring->buffers, ~0, queue_size); } else { -- cgit 1.2.3-korg