HomeFreeBSD

pf: assert that sizeof(struct pf_state) <= 312

Description

pf: assert that sizeof(struct pf_state) <= 312

To prevent accidentally going over a threshold which makes UMA fit only
12 objects per page instead of 13.

Reviewed by: kp
Sponsored by: Rubicon Communications, LLC ("Netgate")

(cherry picked from commit e6dd0e2e8d4f59275fb576a9ccb9d356d36457bb)

Details

Provenance
mjgAuthored on Jun 28 2021, 12:49 PM
Parents
rG47a2d55f00ee: pf: factor out state allocation into pf_alloc_state
Branches
Unknown
Tags
Unknown