mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-23 16:01:42 +00:00
- packets on the input interface were counted twice
- Use IFQ_HANDOFF instead of rolling our own
This commit is contained in:
parent
98069bca33
commit
6469e186ad
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169783
@ -1078,8 +1078,6 @@ lagg_input(struct ifnet *ifp, struct mbuf *m)
|
||||
m = (*sc->sc_input)(sc, lp, m);
|
||||
|
||||
if (m != NULL) {
|
||||
ifp->if_ipackets++;
|
||||
ifp->if_ibytes += m->m_pkthdr.len;
|
||||
trifp->if_ipackets++;
|
||||
trifp->if_ibytes += m->m_pkthdr.len;
|
||||
}
|
||||
@ -1271,17 +1269,7 @@ lagg_enqueue(struct ifnet *ifp, struct mbuf *m)
|
||||
{
|
||||
int error = 0;
|
||||
|
||||
/* Send mbuf */
|
||||
IFQ_ENQUEUE(&ifp->if_snd, m, error);
|
||||
if (error)
|
||||
return (error);
|
||||
if ((ifp->if_drv_flags & IFF_DRV_OACTIVE) == 0)
|
||||
(*ifp->if_start)(ifp);
|
||||
|
||||
ifp->if_obytes += m->m_pkthdr.len;
|
||||
if (m->m_flags & M_MCAST)
|
||||
ifp->if_omcasts++;
|
||||
|
||||
IFQ_HANDOFF(ifp, m, error);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user