summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_ipw.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2017-01-22 10:17:37 +0000
committerdlg <dlg@openbsd.org>2017-01-22 10:17:37 +0000
commit88a08f2af426247cf5e32d11f8df17f5717812a1 (patch)
tree55b694cef98ba8f92034f91f4eed28aafa059f2a /sys/dev/pci/if_ipw.c
parentsync (diff)
downloadwireguard-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_ipw.c')
-rw-r--r--sys/dev/pci/if_ipw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c
index 8dabd37d389..a75f4600219 100644
--- a/sys/dev/pci/if_ipw.c
+++ b/sys/dev/pci/if_ipw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ipw.c,v 1.118 2016/09/05 10:17:30 tedu Exp $ */
+/* $OpenBSD: if_ipw.c,v 1.119 2017/01/22 10:17:38 dlg Exp $ */
/*-
* Copyright (c) 2004-2008
@@ -1020,9 +1020,6 @@ ipw_tx_intr(struct ipw_softc *sc)
for (i = (sc->txold + 1) % IPW_NTBD; i != r; i = (i + 1) % IPW_NTBD) {
sbd = &sc->stbd_list[i];
- if (sbd->type == IPW_SBD_TYPE_DATA)
- ifp->if_opackets++;
-
ipw_release_sbd(sc, sbd);
sc->txfree++;
}