Module Name:    src
Committed By:   minoura
Date:           Thu May  9 12:23:18 UTC 2013

Modified Files:
        src/sys/dev/pci: if_vioif.c

Log Message:
Fix a typo, and remove an unused member.
This should fix the problem that recent Qemu dies during configuring a vioif.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pci/if_vioif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_vioif.c
diff -u src/sys/dev/pci/if_vioif.c:1.3 src/sys/dev/pci/if_vioif.c:1.4
--- src/sys/dev/pci/if_vioif.c:1.3	Sat Mar 30 03:21:08 2013
+++ src/sys/dev/pci/if_vioif.c	Thu May  9 12:23:17 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_vioif.c,v 1.3 2013/03/30 03:21:08 christos Exp $	*/
+/*	$NetBSD: if_vioif.c,v 1.4 2013/05/09 12:23:17 minoura Exp $	*/
 
 /*
  * Copyright (c) 2010 Minoura Makoto.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.3 2013/03/30 03:21:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.4 2013/05/09 12:23:17 minoura Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -151,7 +151,6 @@ struct vioif_softc {
 
 	uint8_t			sc_mac[ETHER_ADDR_LEN];
 	struct ethercom		sc_ethercom;
-	uint32_t		sc_features;
 	short			sc_ifflags;
 
 	/* bus_dmamem */
@@ -654,7 +653,7 @@ vioif_stop(struct ifnet *ifp, int disabl
 		vioif_rx_drain(sc);
 
 	virtio_reinit_start(vsc);
-	virtio_negotiate_features(vsc, sc->sc_features);
+	virtio_negotiate_features(vsc, vsc->sc_features);
 	virtio_start_vq_intr(vsc, &sc->sc_vq[0]);
 	virtio_stop_vq_intr(vsc, &sc->sc_vq[1]);
 	if (vsc->sc_nvqs >= 3)

Reply via email to