From 895c37fb8ab0d97fafa792bd399baa07f8fac98d Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Tue, 26 May 2020 14:34:34 +0200 Subject: tap: fix rx queue index Type: fix Change-Id: I5601bdeb47d08118476ff7bd29435d2c1dba34b9 Signed-off-by: Mohsin Kazmi (cherry picked from commit 04f4d91c9fe6c8d639e28edb5dd3df2c82f92428) --- src/vnet/devices/virtio/virtio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet/devices') diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c index 5e23bef0889..0fdac9cbd6c 100644 --- a/src/vnet/devices/virtio/virtio.c +++ b/src/vnet/devices/virtio/virtio.c @@ -55,7 +55,8 @@ call_read_ready (clib_file_t * uf) CLIB_UNUSED (ssize_t size) = read (uf->file_descriptor, &b, sizeof (b)); if ((qid & 1) == 0) - vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index, qid); + vnet_device_input_set_interrupt_pending (vnm, vif->hw_if_index, + RX_QUEUE_ACCESS (qid)); return 0; } -- cgit 1.2.3-korg