Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix the wrong segment size in vioif(4)



details:   https://anonhg.NetBSD.org/src/rev/88514387f60c
branches:  trunk
changeset: 1010415:88514387f60c
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Mon May 25 08:22:39 2020 +0000

description:
Fix the wrong segment size in vioif(4)

diffstat:

 sys/dev/pci/if_vioif.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7eb93a34ebe8 -r 88514387f60c sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Mon May 25 08:16:23 2020 +0000
+++ b/sys/dev/pci/if_vioif.c    Mon May 25 08:22:39 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.55 2020/05/25 08:16:23 yamaguchi Exp $  */
+/*     $NetBSD: if_vioif.c,v 1.56 2020/05/25 08:22:39 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.55 2020/05/25 08:16:23 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.56 2020/05/25 08:22:39 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -847,7 +847,7 @@
 
                snprintf(qname, sizeof(qname), "rx%d", i);
                r = virtio_alloc_vq(vsc, rxq->rxq_vq, nvqs,
-                   MCLBYTES+sizeof(struct virtio_net_hdr), nvqs, qname);
+                   MCLBYTES+sizeof(struct virtio_net_hdr), 2, qname);
                if (r != 0)
                        goto err;
                nvqs++;



Home | Main Index | Thread Index | Old Index