summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-09 13:24:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-10 09:53:33 +0100
commitec2e4b1fd201b25de2c754b6901508913b7b6454 (patch)
treeba41c4fe50555e44757a4ecc4a0a4970b6c6c3ed
parentif_dwc: Move interrupt handler install (diff)
downloadrtems-libbsd-ec2e4b1fd201b25de2c754b6901508913b7b6454.tar.bz2
if_dwc: Fix IFCOUNTER_OPACKETS statistics
Output packets are counted in dwc_harvest_stats() as well.
-rw-r--r--freebsd/sys/dev/dwc/if_dwc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index e76c49f6..0d0d669d 100644
--- a/freebsd/sys/dev/dwc/if_dwc.c
+++ b/freebsd/sys/dev/dwc/if_dwc.c
@@ -736,7 +736,6 @@ dwc_txfinish_locked(struct dwc_softc *sc)
dwc_setup_txdesc(sc, sc->tx_idx_tail, 0, 0);
sc->tx_idx_tail = next_txidx(sc, sc->tx_idx_tail);
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
- if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
}
/* If there are no buffers outstanding, muzzle the watchdog. */