Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci restore fetch of qsize.



details:   https://anonhg.NetBSD.org/src/rev/dd246293ba67
branches:  trunk
changeset: 374020:dd246293ba67
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Mar 25 08:14:00 2023 +0000

description:
restore fetch of qsize.

diffstat:

 sys/dev/pci/vioscsi.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3946cf480d5f -r dd246293ba67 sys/dev/pci/vioscsi.c
--- a/sys/dev/pci/vioscsi.c     Sat Mar 25 02:59:23 2023 +0000
+++ b/sys/dev/pci/vioscsi.c     Sat Mar 25 08:14:00 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vioscsi.c,v 1.33 2023/03/24 13:32:19 yamaguchi Exp $   */
+/*     $NetBSD: vioscsi.c,v 1.34 2023/03/25 08:14:00 mlelstv Exp $     */
 /*     $OpenBSD: vioscsi.c,v 1.3 2015/03/14 03:38:49 jsg Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.33 2023/03/24 13:32:19 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vioscsi.c,v 1.34 2023/03/25 08:14:00 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -163,6 +163,7 @@ vioscsi_attach(device_t parent, device_t
                        sc->sc_vqs[i].vq_done = vioscsi_vq_done;
        }
 
+       qsize = sc->sc_vqs[VIOSCSI_VQ_REQUEST].vq_num;
        if (vioscsi_alloc_reqs(sc, vsc, qsize))
                goto err;
 



Home | Main Index | Thread Index | Old Index