diff options
author | 2017-01-22 10:17:37 +0000 | |
---|---|---|
committer | 2017-01-22 10:17:37 +0000 | |
commit | 88a08f2af426247cf5e32d11f8df17f5717812a1 (patch) | |
tree | 55b694cef98ba8f92034f91f4eed28aafa059f2a /sys/dev/pci/if_sis.c | |
parent | sync (diff) | |
download | wireguard-openbsd-88a08f2af426247cf5e32d11f8df17f5717812a1.tar.xz wireguard-openbsd-88a08f2af426247cf5e32d11f8df17f5717812a1.zip |
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@
Diffstat (limited to 'sys/dev/pci/if_sis.c')
-rw-r--r-- | sys/dev/pci/if_sis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/if_sis.c b/sys/dev/pci/if_sis.c index 2c977c57819..d4ec85a7ed5 100644 --- a/sys/dev/pci/if_sis.c +++ b/sys/dev/pci/if_sis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sis.c,v 1.134 2016/04/13 10:34:32 mpi Exp $ */ +/* $OpenBSD: if_sis.c,v 1.135 2017/01/22 10:17:38 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -1498,7 +1498,6 @@ sis_txeof(struct sis_softc *sc) ifp->if_collisions += (txstat & SIS_TXSTAT_COLLCNT) >> 16; - ifp->if_opackets++; if (cur_tx->map->dm_nsegs != 0) { bus_dmamap_t map = cur_tx->map; |