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
@ -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