[PATCH v2 00/19] use rte optional stdatomic API
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 18 01:55:22 CEST 2023
On Tue, 17 Oct 2023 13:30:58 -0700
Tyler Retzlaff <roretzla at linux.microsoft.com> wrote:
> Replace the use of gcc builtin __atomic_xxx intrinsics with
> corresponding rte_atomic_xxx optional stdatomic API.
>
> v2:
> * add #include <rte_stdatomic.h> to rte_mbuf_core.h
> * remove first two patches which were fixes that have
> been merged in another series
Looks good.
It does look like lots of places are doing per-cpu statistics
and maybe a set of helpers for that would make it simpler.
Linux has percpu_counter_XXX helpers and NET_INC_STATS() macro.
More information about the dev
mailing list