Turn `pflowstats' statistics counters into per-CPU counters to make them
authormvs <mvs@openbsd.org>
Tue, 12 Dec 2023 00:03:31 +0000 (00:03 +0000)
committermvs <mvs@openbsd.org>
Tue, 12 Dec 2023 00:03:31 +0000 (00:03 +0000)
commitccf5da69583c0d4369ab3dc89805c858d4b2e8dc
tree91c96d4b439a6eeb9627e03d95eebacbd62b7245
parent04459484ef65b24eeb35e1d5ee05aa2e814916db
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.

ok bluhm sashan
sys/net/if_pflow.c
sys/net/if_pflow.h