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.3 diff -u -p -r1.2 -r1.2.8.3 --- src/sys/dev/pci/if_vioif.c 2011/11/19 12:32:54 1.2 +++ src/sys/dev/pci/if_vioif.c 2016/09/24 12:56:16 1.2.8.3 @@ -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.3 2016/09/24 12:56:16 bouyer 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.3 2016/09/24 12:56:16 bouyer 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 */ @@ -379,7 +378,7 @@ vioif_alloc_mems(struct vioif_softc *sc) } 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, 256 /* XXX */, 0, @@ -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)