From: mikeb Date: Fri, 23 Jun 2017 18:51:28 +0000 (+0000) Subject: Finish up minor changes in the output and clear the BATCHED channel flag X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c16b4e2e9301ecac770c6315fa21b16957e0bdc4;p=openbsd Finish up minor changes in the output and clear the BATCHED channel flag --- diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c index 9613bdf722d..adac1667edb 100644 --- a/sys/dev/pv/if_hvn.c +++ b/sys/dev/pv/if_hvn.c @@ -246,7 +246,7 @@ hvn_attach(struct device *parent, struct device *self, void *aux) strlcpy(ifp->if_xname, sc->sc_dev.dv_xname, IFNAMSIZ); - printf(" channel %u: ", sc->sc_chan->ch_id); + printf(" channel %u", sc->sc_chan->ch_id); if (hvn_nvs_attach(sc)) { printf(": failed to init NVSP\n"); @@ -295,6 +295,10 @@ hvn_attach(struct device *parent, struct device *self, void *aux) goto detach; } + printf(": NVS %d.%d NDIS %d.%d", sc->sc_proto >> 16, + sc->sc_proto & 0xffff, sc->sc_ndisver >> 16 , + sc->sc_ndisver & 0xffff); + if (hvn_set_capabilities(sc)) { printf(": failed to setup offloading\n"); hvn_rndis_detach(sc); @@ -307,11 +311,7 @@ hvn_attach(struct device *parent, struct device *self, void *aux) goto detach; } - DPRINTF("%s:", sc->sc_dev.dv_xname); - printf(" channel %u: NVS %d.%d NDIS %d.%d, address %s\n", - sc->sc_chan->ch_id, sc->sc_proto >> 16, sc->sc_proto & 0xffff, - sc->sc_ndisver >> 16 , sc->sc_ndisver & 0xffff, - ether_sprintf(sc->sc_ac.ac_enaddr)); + printf(", address %s\n", ether_sprintf(sc->sc_ac.ac_enaddr)); ether_ifattach(ifp); return; @@ -892,6 +892,8 @@ hvn_nvs_attach(struct hvn_softc *sc) HVN_TX_DESC * (sizeof(struct hvn_nvs_rndis) + (HVN_TX_FRAGS + 1) * sizeof(struct vmbus_gpa)); + sc->sc_chan->ch_flags &= ~CHF_BATCHED; + /* Associate our interrupt handler with the channel */ if (hv_channel_open(sc->sc_chan, ringsize, NULL, 0, hvn_nvs_intr, sc)) {