Fix pf(4) to build with MAXCPU set to 256. MAXCPU is actually a count,
not a maximum ID value (so it is a cap on mp_ncpus, not mp_maxid).
This commit is contained in:
parent
bd72c7ac76
commit
b437b06c79
@ -196,7 +196,7 @@ VNET_DEFINE(uint64_t, pf_stateid[MAXCPU]);
|
||||
#define PFID_CPUSHIFT (sizeof(uint64_t) * NBBY - PFID_CPUBITS)
|
||||
#define PFID_CPUMASK ((uint64_t)((1 << PFID_CPUBITS) - 1) << PFID_CPUSHIFT)
|
||||
#define PFID_MAXID (~PFID_CPUMASK)
|
||||
CTASSERT((1 << PFID_CPUBITS) > MAXCPU);
|
||||
CTASSERT((1 << PFID_CPUBITS) >= MAXCPU);
|
||||
|
||||
static void pf_src_tree_remove_state(struct pf_state *);
|
||||
static void pf_init_threshold(struct pf_threshold *, u_int32_t,
|
||||
|
Loading…
Reference in New Issue
Block a user