summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_axe.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2017-01-22 10:17:40 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2017-01-22 10:17:40 +0000
commitf6129f414cbe94169beb11dd59307556f48ba33a (patch)
treee5c7e9e39df56a638f353df59c91293716e91790 /sys/dev/usb/if_axe.c
parentdc8502d359a9b47a4fc9b0ee84cfd6ce8b1cd350 (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/usb/if_axe.c')
-rw-r--r--sys/dev/usb/if_axe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c
index 484c33ed1df..8d197a19b2b 100644
--- a/sys/dev/usb/if_axe.c
+++ b/sys/dev/usb/if_axe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_axe.c,v 1.137 2016/04/13 11:03:37 mpi Exp $ */
+/* $OpenBSD: if_axe.c,v 1.138 2017/01/22 10:17:39 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org>
@@ -1130,7 +1130,6 @@ axe_txeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
if (IFQ_IS_EMPTY(&ifp->if_snd) == 0)
axe_start(ifp);
- ifp->if_opackets++;
splx(s);
return;
}