HomeFreeBSD

pflow: Turn `pflowstats' statistics counters into per-CPU counters to make them…

Description

pflow: Turn `pflowstats' statistics counters into per-CPU counters to make them mpsafe.

The weird interactions around pflow_flows' and sc_gcounter' replaced
by simple `pflow_flows' increment. Since the flow sequence is the 32
bits integer, the `sc_gcounter' type replaced by the type of uint32_t.

Obtained from: OpenBSD
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D43116

Details

Provenance
kpAuthored on Dec 14 2023, 1:06 PM
Differential Revision
D43116: pflow: Turn `pflowstats' statistics counters into per-CPU counters to make them mpsafe.
Parents
rG34276498fae8: pf tests: verify pflow over IPv6
Branches
Unknown
Tags
Unknown