summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_vmx.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-05-29 00:37:11 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2015-05-29 00:37:11 +0000
commit0e94783eb165363f83359c3b903fa3efa7f3dfb1 (patch)
tree8b99e840b5bc21201b63c5c7cf89f499cfe14746 /sys/dev/pci/if_vmx.c
parentdf3683f9fc781aa41ac4ee46413e8311f00022d3 (diff)
Revert unrelated changes in previous.
Diffstat (limited to 'sys/dev/pci/if_vmx.c')
-rw-r--r--sys/dev/pci/if_vmx.c27
1 files changed, 1 insertions, 26 deletions
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 *);
@@ -518,28 +517,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)
{
struct vmxnet3_rxring *ring;
@@ -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)) {