svn commit: r310079 - stable/11/sys/dev/virtio/pci

Andriy Gapon avg at FreeBSD.org
Wed Dec 14 16:44:35 UTC 2016


Author: avg
Date: Wed Dec 14 16:44:33 2016
New Revision: 310079
URL: https://svnweb.freebsd.org/changeset/base/310079

Log:
  MFC r309119: virtio_pci: fix announcement of MSI-X interrupts for queues

Modified:
  stable/11/sys/dev/virtio/pci/virtio_pci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/virtio/pci/virtio_pci.c
==============================================================================
--- stable/11/sys/dev/virtio/pci/virtio_pci.c	Wed Dec 14 16:43:09 2016	(r310078)
+++ stable/11/sys/dev/virtio/pci/virtio_pci.c	Wed Dec 14 16:44:33 2016	(r310079)
@@ -1087,7 +1087,8 @@ vtpci_set_host_msix_vectors(struct vtpci
 		 * 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++;
 	}
 


More information about the svn-src-all mailing list