From 0e94783eb165363f83359c3b903fa3efa7f3dfb1 Mon Sep 17 00:00:00 2001 From: Masao Uebayashi Date: Fri, 29 May 2015 00:37:11 +0000 Subject: Revert unrelated changes in previous. --- sys/dev/pci/if_vmx.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'sys/dev/pci/if_vmx.c') diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c index a617f6e79a0..29738d5e1d2 100644 --- a/sys/dev/pci/if_vmx.c +++ b/sys/dev/pci/if_vmx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vmx.c,v 1.27 2015/05/29 00:33:37 uebayasi Exp $ */ +/* $OpenBSD: if_vmx.c,v 1.28 2015/05/29 00:37:10 uebayasi Exp $ */ /* * Copyright (c) 2013 Tsubai Masanari @@ -151,7 +151,6 @@ int vmxnet3_alloc_rxring(struct vmxnet3_softc *, int); void vmxnet3_txinit(struct vmxnet3_softc *, struct vmxnet3_txqueue *); void vmxnet3_rxinit(struct vmxnet3_softc *, struct vmxnet3_rxqueue *); void vmxnet3_txstop(struct vmxnet3_softc *, struct vmxnet3_txqueue *); -void vmxnet3_rxdump(struct vmxnet3_softc *); void vmxnet3_rxstop(struct vmxnet3_softc *, struct vmxnet3_rxqueue *); void vmxnet3_link_state(struct vmxnet3_softc *); void vmxnet3_enable_all_intrs(struct vmxnet3_softc *); @@ -517,28 +516,6 @@ vmxnet3_txstop(struct vmxnet3_softc *sc, struct vmxnet3_txqueue *tq) } } -void -vmxnet3_rxdump(struct vmxnet3_softc *sc) -{ -#if 0 - int queue, i; - - for (queue = 0; queue < NRXQUEUE; queue++) { - struct vmxnet3_rxqueue *rq = &sc->sc_rxq[queue]; - - for (i = 0; i < 2; i++) { - struct vmxnet3_rxring *ring = &rq->cmd_ring[i]; - - struct if_rxring *r = &ring->rxr; - printf("ring%d: " - "adjusted=%d alive=%u cwm=%u lwm=%u hwm=%u\n", - i, - r->rxr_adjusted, r->rxr_alive, r->rxr_cwm, r->rxr_lwm, r->rxr_hwm); - } - } -#endif -} - void vmxnet3_rxstop(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rq) { @@ -936,7 +913,6 @@ vmxnet3_stop(struct ifnet *ifp) vmxnet3_txstop(sc, &sc->sc_txq[queue]); for (queue = 0; queue < NRXQUEUE; queue++) vmxnet3_rxstop(sc, &sc->sc_rxq[queue]); - vmxnet3_rxdump(sc); } void @@ -965,7 +941,6 @@ vmxnet3_init(struct vmxnet3_softc *sc) vmxnet3_txinit(sc, &sc->sc_txq[queue]); for (queue = 0; queue < NRXQUEUE; queue++) vmxnet3_rxinit(sc, &sc->sc_rxq[queue]); - vmxnet3_rxdump(sc); WRITE_CMD(sc, VMXNET3_CMD_ENABLE); if (READ_BAR1(sc, VMXNET3_BAR1_CMD)) { -- cgit v1.2.3