[rtems-libbsd commit] if_dwc: Fix IFCOUNTER_OPACKETS statistics
Sebastian Huber
sebh at rtems.org
Tue Jan 10 10:06:12 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: ec2e4b1fd201b25de2c754b6901508913b7b6454
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=ec2e4b1fd201b25de2c754b6901508913b7b6454
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jan 9 13:24:33 2017 +0100
if_dwc: Fix IFCOUNTER_OPACKETS statistics
Output packets are counted in dwc_harvest_stats() as well.
---
freebsd/sys/dev/dwc/if_dwc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/freebsd/sys/dev/dwc/if_dwc.c b/freebsd/sys/dev/dwc/if_dwc.c
index e76c49f..0d0d669 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. */
More information about the vc
mailing list