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 848e93d ]

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

Fixes: 3d4fb6f ("net/virtio-user: support Rx interrupt")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
david-marchand authored and cpaelzer committed Nov 30, 2021
1 parent d7a9138 commit 7bd82b6
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 @@ -299,7 +299,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 7bd82b6

Please sign in to comment.