diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-01-22 10:17:40 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-01-22 10:17:40 +0000 |
commit | f6129f414cbe94169beb11dd59307556f48ba33a (patch) | |
tree | e5c7e9e39df56a638f353df59c91293716e91790 /sys/dev/ic/ar9003.c | |
parent | dc8502d359a9b47a4fc9b0ee84cfd6ce8b1cd350 (diff) |
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/ic/ar9003.c')
-rw-r--r-- | sys/dev/ic/ar9003.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/ar9003.c b/sys/dev/ic/ar9003.c index 0e299c9adbf..ee91e04bbf1 100644 --- a/sys/dev/ic/ar9003.c +++ b/sys/dev/ic/ar9003.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ar9003.c,v 1.42 2017/01/12 16:32:28 stsp Exp $ */ +/* $OpenBSD: ar9003.c,v 1.43 2017/01/22 10:17:37 dlg Exp $ */ /*- * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr> @@ -1098,7 +1098,6 @@ ar9003_tx_process(struct athn_softc *sc) return (0); } SIMPLEQ_REMOVE_HEAD(&txq->head, bf_list); - ifp->if_opackets++; sc->sc_tx_timer = 0; |