summaryrefslogtreecommitdiffstats
path: root/sys/dev/virtio/pci/virtio_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/virtio/pci/virtio_pci.c')
-rw-r--r--sys/dev/virtio/pci/virtio_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/virtio/pci/virtio_pci.c b/sys/dev/virtio/pci/virtio_pci.c
index c4f81fd..121351f 100644
--- a/sys/dev/virtio/pci/virtio_pci.c
+++ b/sys/dev/virtio/pci/virtio_pci.c
@@ -1087,7 +1087,8 @@ vtpci_set_host_msix_vectors(struct vtpci_softc *sc)
* For shared MSIX, all the virtqueues share the first
* interrupt.
*/
- if ((sc->vtpci_flags & VTPCI_FLAG_SHARED_MSIX) == 0)
+ if (!sc->vtpci_vqs[idx].vtv_no_intr &&
+ (sc->vtpci_flags & VTPCI_FLAG_SHARED_MSIX) == 0)
intr++;
}
OpenPOWER on IntegriCloud