1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Convert to if_inc_counter() last remnantes of bare access to struct ifnet

counters.
This commit is contained in:
Gleb Smirnoff 2014-09-28 07:43:38 +00:00
parent fbc4ef4ca7
commit 2357543753
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272242

View File

@ -1485,7 +1485,7 @@ lagg_transmit(struct ifnet *ifp, struct mbuf *m)
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 mbuf *m)
LAGG_RUNLOCK(sc, &tracker);
if (error != 0)
ifp->if_oerrors++;
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
return (error);
}