diff options
author | 2015-09-01 04:56:55 +0000 | |
---|---|---|
committer | 2015-09-01 04:56:55 +0000 | |
commit | 2c31001581e4512820e66636d025c02214ee0916 (patch) | |
tree | 9e2859b1c26b4bddfa07afbdc7637f1a8f472f85 | |
parent | reintroduce bpf.c r1.121. (diff) | |
download | wireguard-openbsd-2c31001581e4512820e66636d025c02214ee0916.tar.xz wireguard-openbsd-2c31001581e4512820e66636d025c02214ee0916.zip |
dont need the kernel lock for mpsafe bpfs (again)
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index cd46aad3b21..83fc99725c5 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.362 2015/08/30 10:39:16 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.363 2015/09/01 04:56:55 dlg Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -474,10 +474,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 |