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

Gleb Smirnoff glebius at FreeBSD.org
Sat Sep 27 20:43:02 UTC 2014


Author: glebius
Date: Sat Sep 27 20:43:01 2014
New Revision: 272226
URL: http://svnweb.freebsd.org/changeset/base/272226

Log:
  Mechanically convert to if_inc_counter().

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

Modified: head/sys/dev/dwc/if_dwc.c
==============================================================================
--- head/sys/dev/dwc/if_dwc.c	Sat Sep 27 20:39:24 2014	(r272225)
+++ head/sys/dev/dwc/if_dwc.c	Sat Sep 27 20:43:01 2014	(r272226)
@@ -799,7 +799,7 @@ dwc_rxfinish_locked(struct dwc_softc *sc
 			m->m_pkthdr.rcvif = ifp;
 			m->m_pkthdr.len = len;
 			m->m_len = len;
-			ifp->if_ipackets++;
+			if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
 
 			DWC_UNLOCK(sc);
 			(*ifp->if_input)(ifp, m);


More information about the svn-src-head mailing list