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 initializing wrong queues
details: https://anonhg.NetBSD.org/src/rev/c668c1393ce5
branches: trunk
changeset: 347510:c668c1393ce5
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Aug 29 04:21:25 2016 +0000
description:
Fix initializing wrong queues
Pointed out by Mike Larkin.
PR kern/51448
diffstat:
sys/dev/pci/if_vioif.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 808a70a1f51f -r c668c1393ce5 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Mon Aug 29 03:50:05 2016 +0000
+++ b/sys/dev/pci/if_vioif.c Mon Aug 29 04:21:25 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.24 2016/06/10 13:27:14 ozaki-r Exp $ */
+/* $NetBSD: if_vioif.c,v 1.25 2016/08/29 04:21:25 ozaki-r Exp $ */
/*
* Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.24 2016/06/10 13:27:14 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.25 2016/08/29 04:21:25 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -427,7 +427,7 @@
}
for (i = 0; i < txqsize; i++) {
- C_L1(txhdr_dmamaps[i], rx_hdrs[i],
+ C_L1(txhdr_dmamaps[i], tx_hdrs[i],
sizeof(struct virtio_net_hdr), 1,
WRITE, "tx header");
C(tx_dmamaps[i], NULL, ETHER_MAX_LEN, 16 /* XXX */, 0,
Home |
Main Index |
Thread Index |
Old Index