[PATCH] eal: remove atomic flag operations
Morten Brørup
mb at smartsharesystems.com
Sat Nov 14 15:54:19 CET 2026
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Thursday, 17 September 2026 13.41
>
> The rte_atomic_flag_test_and_set_explicit and
> rte_atomic_flag_clear_explicit macros were added in 23.11 with the rest
> of the stdatomic API and never had an in-tree user.
>
> They cannot be used portably:
>
> * Only test-and-set and clear were wrapped.
> C11 makes atomic_flag opaque with no load operation.
>
> * The operand type differs between the two implementations, and no type
> works in all builds: across stdatomic and gcc vs clang.
>
> No portable application can be using these, so removal cannot break
> correct code. Use rte_atomic_exchange_explicit,
> rte_atomic_load_explicit
> and rte_atomic_store_explicit on an RTE_ATOMIC(bool) instead.
>
> Removed without a deprecation notice as the API cannot be used as
> specified. 26.11 is an ABI break release.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list