Fix couple of fallouts from r280280. The first one is a simple typo,
where counter was incremented on parent, instead of vlan(4) interface. The second is more complicated. Historically, in our stack the incoming packets are accounted in drivers, while incoming bytes for Ethernet drivers are accounted in ether_input_internal(). Thus, it should be removed from vlan(4) driver. Sponsored by: Netflix Sponsored by: Nginx, Inc.
This commit is contained in:
parent
86750039c6
commit
c03044244f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280622
@ -1163,8 +1163,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m)
|
||||
TRUNK_RUNLOCK(trunk);
|
||||
|
||||
m->m_pkthdr.rcvif = ifv->ifv_ifp;
|
||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
||||
if_inc_counter(ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len);
|
||||
if_inc_counter(ifv->ifv_ifp, IFCOUNTER_IPACKETS, 1);
|
||||
|
||||
/* Pass it back through the parent's input routine. */
|
||||
(*ifp->if_input)(ifv->ifv_ifp, m);
|
||||
|
Loading…
Reference in New Issue
Block a user