summaryrefslogtreecommitdiff
path: root/sys/arch/armv7/sunxi
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/arch/armv7/sunxi
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/arch/armv7/sunxi')
-rw-r--r--sys/arch/armv7/sunxi/sxie.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/armv7/sunxi/sxie.c b/sys/arch/armv7/sunxi/sxie.c
index c4bc430d582..1cd713cd52a 100644
--- a/sys/arch/armv7/sunxi/sxie.c
+++ b/sys/arch/armv7/sunxi/sxie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sxie.c,v 1.24 2017/01/21 08:26:49 patrick Exp $ */
+/* $OpenBSD: sxie.c,v 1.25 2017/01/22 10:17:37 dlg Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2013 Artturi Alm
@@ -440,10 +440,6 @@ sxie_intr(void *arg)
if (pending & (SXIE_TX_FIFO0 | SXIE_TX_FIFO1)) {
ifq_clr_oactive(&ifp->if_snd);
- if (pending & SXIE_TX_FIFO0)
- ifp->if_opackets++;
- if (pending & SXIE_TX_FIFO1)
- ifp->if_opackets++;
sc->txf_inuse &= ~pending;
if (sc->txf_inuse == 0)
ifp->if_timer = 0;