HomeFreeBSD

pf: Only hook the Ethernet pfil hook when we have rules

Description

pf: Only hook the Ethernet pfil hook when we have rules

Avoid the overhead of the Ethernet pfil hooks if we don't have any
Ethernet rules.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31742

Details

Provenance
kpAuthored on Feb 16 2021, 12:42 PM
Differential Revision
D31742: pf: Only hook the Ethernet pfil hook when we have rules
Parents
rG5c75dfdf6056: pf: SDTs for ether rule matching
Branches
Unknown
Tags
Unknown