Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/pci/if_vioif.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/pci/if_vioif.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2 retrieving revision 1.2.8.2 diff -u -p -r1.2 -r1.2.8.2 --- src/sys/dev/pci/if_vioif.c 2011/11/19 12:32:54 1.2 +++ src/sys/dev/pci/if_vioif.c 2014/08/07 09:31:09 1.2.8.2 @@ -1,4 +1,4 @@ -/* $NetBSD: if_vioif.c,v 1.2 2011/11/19 12:32:54 jmcneill Exp $ */ +/* $NetBSD: if_vioif.c,v 1.2.8.2 2014/08/07 09:31:09 msaitoh Exp $ */ /* * Copyright (c) 2010 Minoura Makoto. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.2 2011/11/19 12:32:54 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.2.8.2 2014/08/07 09:31:09 msaitoh Exp $"); #include #include @@ -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 */ @@ -558,7 +557,7 @@ vioif_attach(device_t parent, device_t s } } - sc->sc_rx_softint = softint_establish(SOFTINT_NET|SOFTINT_MPSAFE, + sc->sc_rx_softint = softint_establish(SOFTINT_NET, vioif_rx_softint, sc); if (sc->sc_rx_softint == NULL) { aprint_error_dev(self, "cannot establish softint\n"); @@ -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)