summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-09 12:50:09 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-09 12:50:09 +0000
commit3b1296e0133fa3343370fb3ba6504ba591aceb1c (patch)
tree5fd851dceece569c9e75558e439aecd5380ecd26 /sys/net
parentd0ec26381c5e23ce70cda736a6e1b0f8cf7d30df (diff)
Kill a couple of if_get()s only needed to increment per-ifp IPv6 stats.
We do not export those per-ifp statistics and they will soon all die. "We're putting inet6 on a diet" claudio@ ok dlg@, mikeb@, claudio@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_bridge.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index a394ace4849..756fcb899d0 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.260 2015/08/26 09:40:31 mpi Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.261 2015/09/09 12:50:08 mpi Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -2378,11 +2378,7 @@ bridge_ip(struct bridge_softc *sc, int dir, struct ifnet *ifp,
ip6 = mtod(m, struct ip6_hdr *);
if ((ip6->ip6_vfc & IPV6_VERSION_MASK) != IPV6_VERSION) {
- struct ifnet *ifp;
ip6stat.ip6s_badvers++;
- ifp = if_get(m->m_pkthdr.ph_ifidx);
- if (ifp != NULL)
- in6_ifstat_inc(ifp, ifs6_in_hdrerr);
goto dropit;
}