HomeFreeBSD

pf: postpone clearing of struct pf_pdesc

Description

pf: postpone clearing of struct pf_pdesc

Postpone zeroing out pd until after the PFI_IFLAG_SKIP/M_SKIP_FIREWALL
checks. We don't need it until then, and it saves us a few CPU cycles in
some cases.
This isn't expected to make a measurable performance change though.

Reviewed by: mjg, glebius
Pointed out by: markj
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D33815

Details

Provenance
kpAuthored on Jan 10 2022, 5:43 PM
Reviewer
mjg
Differential Revision
D33815: pf: postpone clearing of struct pf_pdesc
Parents
rGecc393594dbe: pf: remove PF_TAG_GENERATED
Branches
Unknown
Tags
Unknown