Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Use MSIX when available
details: https://anonhg.NetBSD.org/src/rev/122aa365fcc2
branches: trunk
changeset: 994824:122aa365fcc2
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Nov 23 18:08:11 2018 +0000
description:
Use MSIX when available
diffstat:
sys/dev/pci/ld_virtio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8c2e867d0432 -r 122aa365fcc2 sys/dev/pci/ld_virtio.c
--- a/sys/dev/pci/ld_virtio.c Fri Nov 23 16:01:27 2018 +0000
+++ b/sys/dev/pci/ld_virtio.c Fri Nov 23 18:08:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_virtio.c,v 1.25 2018/07/12 13:05:39 jakllsch Exp $ */
+/* $NetBSD: ld_virtio.c,v 1.26 2018/11/23 18:08:11 jmcneill Exp $ */
/*
* Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.25 2018/07/12 13:05:39 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_virtio.c,v 1.26 2018/11/23 18:08:11 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -276,7 +276,7 @@
sc->sc_virtio = vsc;
virtio_child_attach_start(vsc, self, IPL_BIO, &sc->sc_vq,
- NULL, virtio_vq_intr, 0,
+ NULL, virtio_vq_intr, VIRTIO_F_PCI_INTR_MSIX,
(VIRTIO_BLK_F_SIZE_MAX | VIRTIO_BLK_F_SEG_MAX |
VIRTIO_BLK_F_GEOMETRY | VIRTIO_BLK_F_RO | VIRTIO_BLK_F_BLK_SIZE |
VIRTIO_BLK_F_FLUSH | VIRTIO_BLK_F_CONFIG_WCE),
Home |
Main Index |
Thread Index |
Old Index