Module Name: src Committed By: ozaki-r Date: Thu Feb 9 09:30:26 UTC 2017
Modified Files: src/sys/net: bpf.c bpfdesc.h if.c Log Message: Make bpf MP-safe By the change, bpf_mtap can run without any locks as long as its bpf filter doesn't match a target packet. Pushing data to a bpf buffer still needs a lock. Removing the lock requires big changes and it's a future work. Another known issue is that we need to remain some obsolete variables to avoid breaking kvm(3) users such as netstat and fstat. One problem for MP-ification is that in order to keep statistic counters of bpf_d we need to use atomic operations for them. Once we retire the kvm(3) users, we should make the counters per-CPU and remove the atomic operations. To generate a diff of this commit: cvs rdiff -u -r1.212 -r1.213 src/sys/net/bpf.c cvs rdiff -u -r1.43 -r1.44 src/sys/net/bpfdesc.h cvs rdiff -u -r1.375 -r1.376 src/sys/net/if.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.