HomeFreeBSD

pf: atomically increment state ids

Description

pf: atomically increment state ids

Rather than using a per-cpu state counter, and adding in the CPU id we
can atomically increment the number.
This has the advantage of removing the assumption that the CPU ID fits
in 8 bits.

Event: Aberdeen Hackathon 2022
Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D36915

Details

Provenance
kpAuthored on Oct 7 2022, 5:17 PM
Reviewer
mjg
Differential Revision
D36915: pf: atomically increment state ids
Parents
rG5b966d7871aa: bhyve: Initialize the return value in blockif_register_resize_callback()
Branches
Unknown
Tags
Unknown