Page MenuHomeFreeBSD

pf: deal with tables gaining or losing counters
ClosedPublic

Authored by kp on Feb 1 2022, 5:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 23, 4:22 PM
Unknown Object (File)
Wed, Apr 23, 8:57 AM
Unknown Object (File)
Wed, Apr 16, 7:26 PM
Unknown Object (File)
Wed, Apr 16, 2:16 AM
Unknown Object (File)
Sun, Apr 6, 10:25 AM
Unknown Object (File)
Mar 10 2025, 9:09 AM
Unknown Object (File)
Mar 7 2025, 4:25 PM
Unknown Object (File)
Jan 2 2025, 4:32 PM

Details

Summary

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")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable