HomeFreeBSD

pf: pre-compute rule hash

Description

pf: pre-compute rule hash

Makes it cheaper to compare rules when "keep_counters" is set.
This also sets up keeping them in a RB tree.

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

Details

Provenance
mjgAuthored on Feb 25 2022, 5:50 PM
Parents
rG93f8c38c0371: pf: add pf_config_lock
Branches
Unknown
Tags
Unknown