From ec2e4b1fd201b25de2c754b6901508913b7b6454 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 9 Jan 2017 13:24:33 +0100 Subject: [PATCH] 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 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. */