Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2014 20:43:02 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272226 - head/sys/dev/dwc
Message-ID:  <201409272043.s8RKh2JD068194@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



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