svn commit: r285192 - head/sys/dev/dwc

Luiz Otavio O Souza loos at FreeBSD.org
Mon Jul 6 03:06:14 UTC 2015


Author: loos
Date: Mon Jul  6 03:06:13 2015
New Revision: 285192
URL: https://svnweb.freebsd.org/changeset/base/285192

Log:
  Fix the sent packets statistics for if_dwc.

Modified:
  head/sys/dev/dwc/if_dwc.c

Modified: head/sys/dev/dwc/if_dwc.c
==============================================================================
--- head/sys/dev/dwc/if_dwc.c	Mon Jul  6 02:16:08 2015	(r285191)
+++ head/sys/dev/dwc/if_dwc.c	Mon Jul  6 03:06:13 2015	(r285192)
@@ -759,6 +759,7 @@ 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 svn-src-head mailing list