Skip to content

Commit

Permalink
net/virtio-user: fix Rx interrupts with multi-queue
Browse files Browse the repository at this point in the history
The callfds[] array stores eventfds sequentially for Rx and Tx vq.

Fixes: d61138d ("drivers: remove direct access to interrupt handle")
Cc: stable@dpdk.org

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
yuanx-wang authored and mcoquelin committed Jul 4, 2022
1 parent 0a666b8 commit 23ab0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/virtio/virtio_user/virtio_user_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ virtio_user_fill_intr_handle(struct virtio_user_dev *dev)

for (i = 0; i < dev->max_queue_pairs; ++i) {
if (rte_intr_efds_index_set(eth_dev->intr_handle, i,
dev->callfds[i]))
dev->callfds[2 * i + VTNET_SQ_RQ_QUEUE_IDX]))
return -rte_errno;
}

Expand Down

0 comments on commit 23ab0c5

Please sign in to comment.