diff options
author | 2017-01-22 10:17:37 +0000 | |
---|---|---|
committer | 2017-01-22 10:17:37 +0000 | |
commit | 88a08f2af426247cf5e32d11f8df17f5717812a1 (patch) | |
tree | 55b694cef98ba8f92034f91f4eed28aafa059f2a /sys/dev/usb/if_udav.c | |
parent | sync (diff) | |
download | wireguard-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_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; |