HomeFreeBSD

pf: Fix duplicate storage of direction

Description

pf: Fix duplicate storage of direction

The variable storing the direction of a processed packet is passed
around to many functions. Most of those functions already have a pointer
to struct pf_pdesc which also contains the direction. By using the one
in struct pf_pdesc we can reduce the amount of arguments passed around.

Reviewed by: kp
Sponsored by: InnGames GmbH
Differential Revision: https://reviews.freebsd.org/D41008

Details

Provenance
vegeta_tuxpowered.netAuthored on Jul 12 2023, 4:04 PM
kpCommitted on Jul 12 2023, 4:05 PM
Reviewer
kp
Differential Revision
D41008: pf: Fix duplicate storage of direction
Parents
rG294c52d969df: amd64 pmap: Fix compilation when superpage reservations are disabled
Branches
Unknown
Tags
Unknown