HomeFreeBSD

pf: drain Ethernet rules cleanup before starting a new transaction

Description

pf: drain Ethernet rules cleanup before starting a new transaction

Inactive Ethernet rules get cleaned by a net_epoch callback. This
callback may still be pending when we try to start a new (pf rules)
transaction, causing it to fail.
This is especially likely to occur in scripted scenarios, such as the
regression tests.

Drain the epoch callbacks before starting a new transaction, ensuring
we've had the opportunity to clean up the inactive rules.

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

Details

Provenance
kpAuthored on Apr 6 2022, 3:03 PM
Differential Revision
D34846: pf: drain Ethernet rules cleanup before starting a new transaction
Parents
rG57f7a82fbb42: if_axgbe: properly release resource in error case
Branches
Unknown
Tags
Unknown