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/usb/if_udav.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/usb/if_udav.c')
-rw-r--r-- | sys/dev/usb/if_udav.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/if_udav.c b/sys/dev/usb/if_udav.c index 8daa106fa87..b68cf5c1cab 100644 --- a/sys/dev/usb/if_udav.c +++ b/sys/dev/usb/if_udav.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_udav.c,v 1.78 2016/04/13 11:03:37 mpi Exp $ */ +/* $OpenBSD: if_udav.c,v 1.79 2017/01/22 10:17:39 dlg Exp $ */ /* $NetBSD: if_udav.c,v 1.3 2004/04/23 17:25:25 itojun Exp $ */ /* $nabe: if_udav.c,v 1.3 2003/08/21 16:57:19 nabe Exp $ */ /* @@ -1025,8 +1025,6 @@ udav_txeof(struct usbd_xfer *xfer, void *priv, usbd_status status) return; } - ifp->if_opackets++; - m_freem(c->udav_mbuf); c->udav_mbuf = NULL; |