summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.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/usb/if_uath.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/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index 3d0d95465f3..1c3ba77970a 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.78 2016/11/06 12:58:01 mpi Exp $ */
+/* $OpenBSD: if_uath.c,v 1.79 2017/01/22 10:17:39 dlg Exp $ */
/*-
* Copyright (c) 2006
@@ -1334,7 +1334,6 @@ uath_data_txeof(struct usbd_xfer *xfer, void *priv,
data->ni = NULL;
sc->tx_queued--;
- ifp->if_opackets++;
sc->sc_tx_timer = 0;
ifq_clr_oactive(&ifp->if_snd);