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/arch/armv7/omap | |
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/arch/armv7/omap')
-rw-r--r-- | sys/arch/armv7/omap/if_cpsw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/armv7/omap/if_cpsw.c b/sys/arch/armv7/omap/if_cpsw.c index 8717b4b21fa..0fb3c9c92b9 100644 --- a/sys/arch/armv7/omap/if_cpsw.c +++ b/sys/arch/armv7/omap/if_cpsw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_cpsw.c,v 1.41 2016/10/02 23:38:32 jsg Exp $ */ +/* $OpenBSD: if_cpsw.c,v 1.42 2017/01/22 10:17:37 dlg Exp $ */ /* $NetBSD: if_cpsw.c,v 1.3 2013/04/17 14:36:34 bouyer Exp $ */ /* @@ -1200,8 +1200,6 @@ cpsw_txintr(void *arg) m_freem(rdp->tx_mb[sc->sc_txhead]); rdp->tx_mb[sc->sc_txhead] = NULL; - ifp->if_opackets++; - handled = true; ifq_clr_oactive(&ifp->if_snd); |