if_dwc: Fix IFCOUNTER_OPACKETS statistics

Output packets are counted in dwc_harvest_stats() as well.
This commit is contained in:
Sebastian Huber
2017-01-09 13:24:33 +01:00
parent e392c98990
commit ec2e4b1fd2

View File

@@ -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. */