From f6129f414cbe94169beb11dd59307556f48ba33a Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 22 Jan 2017 10:17:40 +0000 Subject: move counting if_opackets next to counting if_obytes in if_enqueue. this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@ --- sys/dev/ic/dc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/ic/dc.c') diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c index 714b3a51473..5e8b8fce451 100644 --- a/sys/dev/ic/dc.c +++ b/sys/dev/ic/dc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dc.c,v 1.151 2016/05/04 18:38:57 kettenis Exp $ */ +/* $OpenBSD: dc.c,v 1.152 2017/01/22 10:17:37 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -2264,7 +2264,6 @@ dc_txeof(struct dc_softc *sc) ifp->if_collisions += (txstat & DC_TXSTAT_COLLCNT) >> 3; - ifp->if_opackets++; if (sc->dc_cdata.dc_tx_chain[idx].sd_map->dm_nsegs != 0) { bus_dmamap_t map = sc->dc_cdata.dc_tx_chain[idx].sd_map; -- cgit v1.2.3