[PATCH v3 03/27] ring: use compare-and-swap wrapper

Stephen Hemminger stephen at networkplumber.org
Mon May 25 16:31:38 CEST 2026


On Mon, 25 May 2026 07:41:13 +0000
Konstantin Ananyev <konstantin.ananyev at huawei.com> wrote:

> In fact, in rte_ring we do have 2 implementations of the same core functions:
> lib/ring/rte_ring_c11_pvt.h  - uses C11 atomics
> lib/ring/rte_ring_generic_pvt.h - uses legacy instructions (smp_mb, extra), 
> If we going remove these legacy instructions anyway (or reimplementing them using C11 atomics),
> then there is probably no point to keep rte_ring_generic_pvt.h.
> Konstantin

Good point will try heading that way.


More information about the dev mailing list