pflow: Turn `pflowstats' statistics counters into per-CPU counters to make them mpsafe.
authorKristof Provost <kp@FreeBSD.org>
Thu, 14 Dec 2023 13:06:41 +0000 (14:06 +0100)
committerKristof Provost <kp@FreeBSD.org>
Tue, 16 Jan 2024 08:45:55 +0000 (09:45 +0100)
commit2be6f75707b489d5505d45b677120d0870b6a066
treeb826d484420fa9b28f69ab49a63abd382bd11cf0
parent34276498fae8b41ca1d8944d466cd79aa47fadfb
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
sys/net/pflow.h
sys/netpfil/pf/pflow.c