summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2014-11-20 03:35:57 +0000
committerBrad Smith <brad@cvs.openbsd.org>2014-11-20 03:35:57 +0000
commitd2cebdb494885022537b71996fa40049720f1ff3 (patch)
treeb9dd4fa2302c860cdf31174617e238197cd01c7d
parent14a7cf7528f7a1c0eb4239221e4eebffb674e579 (diff)
- Remove some unused #if 0'd code which does not pertain to OpenBSD
- Remove a bogus if_ierrors++ which if the counter was incremented it would be overwritten by ixgbe_update_stats_counters() ok mikeb@
-rw-r--r--sys/dev/pci/if_ix.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c
index f2599a75c55..0ae39f639c7 100644
--- a/sys/dev/pci/if_ix.c
+++ b/sys/dev/pci/if_ix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ix.c,v 1.107 2014/11/12 16:06:47 mikeb Exp $ */
+/* $OpenBSD: if_ix.c,v 1.108 2014/11/20 03:35:56 brad Exp $ */
/******************************************************************************
@@ -2822,7 +2822,6 @@ ixgbe_rxeof(struct ix_queue *que)
eop = ((staterr & IXGBE_RXD_STAT_EOP) != 0);
if (staterr & IXGBE_RXDADV_ERR_FRAME_ERR_MASK) {
- ifp->if_ierrors++;
sc->dropped_pkts++;
if (rxbuf->fmp) {
@@ -3323,14 +3322,7 @@ ixgbe_update_stats_counters(struct ix_softc *sc)
sc->stats.bptc += IXGBE_READ_REG(hw, IXGBE_BPTC);
#endif
-#if 0
/* Fill out the OS statistics structure */
- ifp->if_ipackets = sc->stats.gprc;
- ifp->if_opackets = sc->stats.gptc;
- ifp->if_ibytes = sc->stats.gorc;
- ifp->if_obytes = sc->stats.gotc;
- ifp->if_imcasts = sc->stats.mprc;
-#endif
ifp->if_collisions = 0;
ifp->if_oerrors = sc->watchdog_events;
ifp->if_ierrors = total_missed_rx + sc->stats.crcerrs + sc->stats.rlec;