svn commit: r272242 - head/sys/net
Gleb Smirnoff
glebius at FreeBSD.org
Sun Sep 28 07:43:39 UTC 2014
Author: glebius
Date: Sun Sep 28 07:43:38 2014
New Revision: 272242
URL: http://svnweb.freebsd.org/changeset/base/272242
Log:
Convert to if_inc_counter() last remnantes of bare access to struct ifnet
counters.
Modified:
head/sys/net/if_lagg.c
Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c Sun Sep 28 07:40:26 2014 (r272241)
+++ head/sys/net/if_lagg.c Sun Sep 28 07:43:38 2014 (r272242)
@@ -1485,7 +1485,7 @@ lagg_transmit(struct ifnet *ifp, struct
if (sc->sc_proto == LAGG_PROTO_NONE || sc->sc_count == 0) {
LAGG_RUNLOCK(sc, &tracker);
m_freem(m);
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
return (ENXIO);
}
@@ -1495,7 +1495,7 @@ lagg_transmit(struct ifnet *ifp, struct
LAGG_RUNLOCK(sc, &tracker);
if (error != 0)
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
return (error);
}
More information about the svn-src-all
mailing list