Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jul 2015 03:06:14 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285192 - head/sys/dev/dwc
Message-ID:  <201507060306.t6636EfB045672@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507060306.t6636EfB045672>