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/pci/if_ix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/pci/if_ix.c') diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index e056b59821d..72d5a3eaaaf 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.148 2016/12/09 17:41:39 mikeb Exp $ */ +/* $OpenBSD: if_ix.c,v 1.149 2017/01/22 10:17:38 dlg Exp $ */ /****************************************************************************** @@ -2386,7 +2386,6 @@ ixgbe_txeof(struct tx_ring *txr) &txr->tx_base[first]; } ++txr->packets; - ++ifp->if_opackets; /* See if there is more work now */ last = tx_buffer->eop_index; if (last != -1) { -- cgit v1.2.3