[PATCH 5/5] ring: use C11 for single thread move head
Konstantin Ananyev
konstantin.ananyev at huawei.com
Thu Jun 4 17:41:06 CEST 2026
> The function to move head for single threaded case can always
> use the C11 code, there is no performance difference from GCC
> intrinsics.
>
> This reduces the exception code to just one function.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
> lib/ring/rte_ring_c11_pvt.h | 62 ------------------------------
> lib/ring/rte_ring_elem_pvt.h | 74 +++++++++++++++++++++++++++++++++---
> lib/ring/rte_ring_gcc_pvt.h | 59 ----------------------------
> 3 files changed, 68 insertions(+), 127 deletions(-)
>
Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
Tested-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
> --
> 2.53.0
More information about the dev
mailing list