From ee49ce9ce8936e7fbb0ed99da45133d8fc372ef2 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Wed, 24 Jun 2015 09:40:56 +0000 Subject: 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@ --- sys/arch/octeon/dev/cn30xxgmx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/arch/octeon/dev') 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 += -- cgit v1.2.3