[PATCH 0/1] net/virtio: fix Rx interrupts with MSI-X
Isaac Boukris
iboukris at gmail.com
Tue Nov 17 13:43:02 CET 2026
Since 26.11-rc2, a virtio-net PCI device on vfio-pci cannot be
configured with Rx interrupts and an offload or RSS, nor configured a
second time: l3fwd-power fails to start on it. This patch fixes it; it
is for 26.11 and stable.
Tested in a VM (QEMU 10.2, vhost-net):
- l3fwd-power in interrupt-only mode on a virtio-net PCI port. Without
the patch it fails as in the commit message. With it, it starts and
each packet wakes its lcore up.
- A port stopped, configured again and started: Rx interrupts still
wake the lcore up (testpmd, with a patch that makes it sleep on
them).
- Rx interrupts on a virtio-user port with a vhost-net backend, which
the patch leaves alone: they work as before.
The legacy DTS has a test plan for this very case,
vhost_virtio_pmd_interrupt (l3fwd-power in a VM, on a virtio-net device
bound to vfio-pci); I did not run it. I will try to come up with a follow
up test for the DTS in the main tree, adding an option for testpmd to
sleep on Rx interrupts and a suite that uses it.
Patch generated with AI assistance.
Isaac Boukris (1):
net/virtio: fix Rx interrupt setup with MSI-X
drivers/net/virtio/virtio_ethdev.c | 7 +++++++
1 file changed, 7 insertions(+)
--
2.56.1
More information about the dev
mailing list