diff options
author | shurd <shurd@FreeBSD.org> | 2018-04-18 18:45:04 +0000 |
---|---|---|
committer | shurd <shurd@FreeBSD.org> | 2018-04-18 18:45:04 +0000 |
commit | c4642292bc00ef62b477d6f9395cfcc717abb691 (patch) | |
tree | 785b07f1a5cabd866a5e77960ad3fda13165a96c /sys/net/bpfdesc.h | |
parent | bcf7cda8c01ea1703330102003ddff5f9fa2fa44 (diff) | |
download | FreeBSD-src-c4642292bc00ef62b477d6f9395cfcc717abb691.zip FreeBSD-src-c4642292bc00ef62b477d6f9395cfcc717abb691.tar.gz |
MFC r332388:
Make BPF global lock an SX
This allows NIC drivers to sleep on polling config operations.
PR: 323477
Submitted by: Matthew Macy <mmacy@mattmacy.io>
Reviewed by: shurd
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D14982
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r-- | sys/net/bpfdesc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h index 496f0b3..3fa8dfb 100644 --- a/sys/net/bpfdesc.h +++ b/sys/net/bpfdesc.h @@ -115,9 +115,6 @@ struct bpf_d { #define BPF_PID_REFRESH(bd, td) (bd)->bd_pid = (td)->td_proc->p_pid #define BPF_PID_REFRESH_CUR(bd) (bd)->bd_pid = curthread->td_proc->p_pid -#define BPF_LOCK() mtx_lock(&bpf_mtx) -#define BPF_UNLOCK() mtx_unlock(&bpf_mtx) -#define BPF_LOCK_ASSERT() mtx_assert(&bpf_mtx, MA_OWNED) /* * External representation of the bpf descriptor */ |