summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/virtio.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-05-26 14:34:34 +0200
committerDamjan Marion <dmarion@me.com>2020-05-28 14:37:50 +0000
commit04f4d91c9fe6c8d639e28edb5dd3df2c82f92428 (patch)
treefd44e77de36e77de8cf71634acd01552041ec6a6 /src/vnet/devices/virtio/virtio.c
parentdcd4aa2110e274f9185e1e5b47ec22d66cc23136 (diff)
tap: fix rx queue index
Type: fix Change-Id: I5601bdeb47d08118476ff7bd29435d2c1dba34b9 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/virtio.c')
-rw-r--r--src/vnet/devices/virtio/virtio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/devices/virtio/virtio.c b/src/vnet/devices/virtio/virtio.c
index 858105c42b5..17fbd7920da 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;
}