Move BPFIF_* macro definitions into .c file, where struct bpf_if is
declared. They are only used in this file and there is no need to export them via bpfdesc.h.
This commit is contained in:
parent
f923a734b3
commit
ca3cd72b17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335362
@ -117,6 +117,11 @@ struct bpf_if {
|
||||
|
||||
CTASSERT(offsetof(struct bpf_if, bif_ext) == 0);
|
||||
|
||||
#define BPFIF_RLOCK(bif) rw_rlock(&(bif)->bif_lock)
|
||||
#define BPFIF_RUNLOCK(bif) rw_runlock(&(bif)->bif_lock)
|
||||
#define BPFIF_WLOCK(bif) rw_wlock(&(bif)->bif_lock)
|
||||
#define BPFIF_WUNLOCK(bif) rw_wunlock(&(bif)->bif_lock)
|
||||
|
||||
#if defined(DEV_BPF) || defined(NETGRAPH_BPF)
|
||||
|
||||
#define PRINET 26 /* interruptible */
|
||||
|
@ -152,11 +152,6 @@ struct xbpf_d {
|
||||
u_int64_t bd_spare[4];
|
||||
};
|
||||
|
||||
#define BPFIF_RLOCK(bif) rw_rlock(&(bif)->bif_lock)
|
||||
#define BPFIF_RUNLOCK(bif) rw_runlock(&(bif)->bif_lock)
|
||||
#define BPFIF_WLOCK(bif) rw_wlock(&(bif)->bif_lock)
|
||||
#define BPFIF_WUNLOCK(bif) rw_wunlock(&(bif)->bif_lock)
|
||||
|
||||
#define BPFIF_FLAG_DYING 1 /* Reject new bpf consumers */
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user