summaryrefslogtreecommitdiff
path: root/sys/arch/octeon
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-24 09:40:56 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-24 09:40:56 +0000
commitee49ce9ce8936e7fbb0ed99da45133d8fc372ef2 (patch)
tree6e68c8d10c737f74759fbbb728e59ba96772fdb4 /sys/arch/octeon
parent6f311cd2637c672a39862ca5d613b5a66dc6060b (diff)
Increment if_ipackets in if_input().
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r--sys/arch/octeon/dev/cn30xxgmx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/octeon/dev/cn30xxgmx.c b/sys/arch/octeon/dev/cn30xxgmx.c
index a2ce29348fd..70d6c8ac5c7 100644
--- a/sys/arch/octeon/dev/cn30xxgmx.c
+++ b/sys/arch/octeon/dev/cn30xxgmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cn30xxgmx.c,v 1.18 2015/02/11 07:05:39 dlg Exp $ */
+/* $OpenBSD: cn30xxgmx.c,v 1.19 2015/06/24 09:40:53 mpi Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -1113,8 +1113,6 @@ cn30xxgmx_stats(struct cn30xxgmx_port_softc *sc)
struct ifnet *ifp = &sc->sc_port_ac->ac_if;
uint64_t tmp;
- ifp->if_ipackets +=
- (uint32_t)_GMX_PORT_RD8(sc, GMX0_RX0_STATS_PKTS);
ifp->if_ierrors +=
(uint32_t)_GMX_PORT_RD8(sc, GMX0_RX0_STATS_PKTS_BAD);
ifp->if_iqdrops +=