Make bpf event filter MP-safe
authorvisa <visa@openbsd.org>
Thu, 13 Jan 2022 14:15:27 +0000 (14:15 +0000)
committervisa <visa@openbsd.org>
Thu, 13 Jan 2022 14:15:27 +0000 (14:15 +0000)
commit422efc1611f6b8b9f5d4b40ffd33c322a73590fc
tree92d08a90f8ffb1d7b2df4a0bcf267c5a46c7a20b
parent1c4e6f78fdf9ed3e8694a73add4957d65d1dd27b
Make bpf event filter MP-safe

Use bd_mtx to serialize bpf knote handling. This allows calling the
event filter without the kernel lock.

OK mpi@
sys/net/bpf.c