Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Do not call virtio_start_vq_intr() for ctrlq
details: https://anonhg.NetBSD.org/src/rev/2e8a252b7b4d
branches: trunk
changeset: 448475:2e8a252b7b4d
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Mon Feb 04 02:49:28 2019 +0000
description:
Do not call virtio_start_vq_intr() for ctrlq
unless the iface has a control queue
diffstat:
sys/dev/pci/if_vioif.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 72dae395fe66 -r 2e8a252b7b4d sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Mon Feb 04 01:46:59 2019 +0000
+++ b/sys/dev/pci/if_vioif.c Mon Feb 04 02:49:28 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.46 2019/01/14 15:00:27 yamaguchi Exp $ */
+/* $NetBSD: if_vioif.c,v 1.47 2019/02/04 02:49:28 yamaguchi Exp $ */
/*
* Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.46 2019/01/14 15:00:27 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.47 2019/02/04 02:49:28 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -1029,6 +1029,8 @@
}
virtio_reinit_end(vsc);
+
+ if (sc->sc_has_ctrl)
virtio_start_vq_intr(vsc, ctrlq->ctrlq_vq);
r = vioif_ctrl_mq_vq_pairs_set(sc, sc->sc_req_nvq_pairs);
Home |
Main Index |
Thread Index |
Old Index