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/pci/if_ste.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/pci/if_ste.c')
| -rw-r--r-- | sys/dev/pci/if_ste.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ste.c b/sys/dev/pci/if_ste.c index 471eee093da..870443d1148 100644 --- a/sys/dev/pci/if_ste.c +++ b/sys/dev/pci/if_ste.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ste.c,v 1.64 2016/04/13 10:34:32 mpi Exp $ */ +/* $OpenBSD: if_ste.c,v 1.65 2017/01/22 10:17:38 dlg Exp $ */ /* * Copyright (c) 1997, 1998, 1999 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. @@ -749,7 +749,6 @@ ste_txeof(struct ste_softc *sc) m_freem(cur_tx->ste_mbuf); cur_tx->ste_mbuf = NULL; ifq_clr_oactive(&ifp->if_snd); - ifp->if_opackets++; STE_INC(idx, STE_TX_LIST_CNT); } |
