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: 3d4fb6f ("net/virtio-user: support Rx interrupt")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
david-marchand authored and mcoquelin committed Sep 14, 2021
1 parent 5be2325 commit 848e93d
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 @@ -416,7 +416,7 @@ virtio_user_fill_intr_handle(struct virtio_user_dev *dev)
}

for (i = 0; i < dev->max_queue_pairs; ++i)
eth_dev->intr_handle->efds[i] = dev->callfds[i];
eth_dev->intr_handle->efds[i] = dev->callfds[2 * i];
eth_dev->intr_handle->nb_efd = dev->max_queue_pairs;
eth_dev->intr_handle->max_intr = dev->max_queue_pairs + 1;
eth_dev->intr_handle->type = RTE_INTR_HANDLE_VDEV;
Expand Down

0 comments on commit 848e93d

Please sign in to comment.