diff options
author | glebius <glebius@FreeBSD.org> | 2014-09-19 10:39:58 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-09-19 10:39:58 +0000 |
commit | f2cafe032fb0458df9700d4be388254503d981a8 (patch) | |
tree | ae7a412373b8b159264640a0e35e6f3eaac332a7 /sys/net/if_vlan.c | |
parent | cedd8768c45365d18dba14cb214c1bd79a7a3c57 (diff) | |
download | FreeBSD-src-f2cafe032fb0458df9700d4be388254503d981a8.zip FreeBSD-src-f2cafe032fb0458df9700d4be388254503d981a8.tar.gz |
Mechanically convert to if_inc_counter().
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 1761c4a..c7a2d01 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1215,7 +1215,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m) __func__, ifp->if_xname, ifp->if_type); #endif m_freem(m); - ifp->if_noproto++; + if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1); return; } } @@ -1225,7 +1225,7 @@ vlan_input(struct ifnet *ifp, struct mbuf *m) if (ifv == NULL || !UP_AND_RUNNING(ifv->ifv_ifp)) { TRUNK_RUNLOCK(trunk); m_freem(m); - ifp->if_noproto++; + if_inc_counter(ifp, IFCOUNTER_NOPROTO, 1); return; } TRUNK_RUNLOCK(trunk); |