HomeFreeBSD

pf: deal with tables gaining or losing counters

Description

pf: deal with tables gaining or losing counters

When we create a table without counters, add an entry and later
re-define the table to have counters we wound up trying to read
non-existent counters.

We now cope with this by attempting to add them if needed, removing them
when they're no longer needed and not trying to read from counters that
are not present.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34131

(cherry picked from commit b21826bf15f7ec1e206fa3cfdf40691f84fb1d8e)

Details

Provenance
kpAuthored on Feb 1 2022, 5:25 PM
Differential Revision
D34131: pf: deal with tables gaining or losing counters
Parents
rGacbae1011ed2: Switch to using drive-supplied timeouts for the sa(4) driver.
Branches
Unknown
Tags
Unknown