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:
parent
fbc4ef4ca7
commit
2357543753
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272242
@ -1485,7 +1485,7 @@ lagg_transmit(struct ifnet *ifp, struct mbuf *m)
|
|||||||
if (sc->sc_proto == LAGG_PROTO_NONE || sc->sc_count == 0) {
|
if (sc->sc_proto == LAGG_PROTO_NONE || sc->sc_count == 0) {
|
||||||
LAGG_RUNLOCK(sc, &tracker);
|
LAGG_RUNLOCK(sc, &tracker);
|
||||||
m_freem(m);
|
m_freem(m);
|
||||||
ifp->if_oerrors++;
|
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
|
||||||
return (ENXIO);
|
return (ENXIO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1495,7 +1495,7 @@ lagg_transmit(struct ifnet *ifp, struct mbuf *m)
|
|||||||
LAGG_RUNLOCK(sc, &tracker);
|
LAGG_RUNLOCK(sc, &tracker);
|
||||||
|
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
ifp->if_oerrors++;
|
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
|
||||||
|
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user