summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-08-16 12:19:06 +0000
committerdlg <dlg@openbsd.org>2015-08-16 12:19:06 +0000
commit02f1ee984983aa6b53d3d0e22a83e1e21966e54b (patch)
tree133d0b16e82ae970c2e33205f1a997af1dd1d8a6
parentmake bpf_mtap mpsafe by using SRPs. (diff)
downloadwireguard-openbsd-02f1ee984983aa6b53d3d0e22a83e1e21966e54b.tar.xz
wireguard-openbsd-02f1ee984983aa6b53d3d0e22a83e1e21966e54b.zip
dont need the biglock to call bpf now.
-rw-r--r--sys/net/if.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 4a7c3dd07af..7677e33de45 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.358 2015/08/16 11:28:31 dlg Exp $ */
+/* $OpenBSD: if.c,v 1.359 2015/08/16 12:19:06 dlg Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -487,10 +487,8 @@ if_input(struct ifnet *ifp, struct mbuf_list *ml)
#if NBPFILTER > 0
if_bpf = ifp->if_bpf;
if (if_bpf) {
- KERNEL_LOCK();
MBUF_LIST_FOREACH(ml, m)
bpf_mtap_ether(if_bpf, m, BPF_DIRECTION_IN);
- KERNEL_UNLOCK();
}
#endif