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
[ upstream commit 23ab0c5 ]

The callfds[] array stores eventfds sequentially for Rx and Tx vq.

Fixes: d61138d ("drivers: remove direct access to interrupt handle")

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
yuanx-wang authored and bluca committed Jul 6, 2022
1 parent c353b1d commit 36f4c8e
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
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 36f4c8e

Please sign in to comment.