Skip to content

add lock-free stack support discovery

Stanislaw Kardach dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3stack: update lock-free supported archslib/librte_stack/rte_stack.h+1 -11 reply
2/3stack: add lock-free support indicationdoc/guides/rel_notes/release_21_05.rst lib/librte_stack/rte_stack.c lib/librte_stack/rte_stack.h +1 more+13 -11 reply
3/3test: run lock-free stack tests when supportedapp/test/test_stack.c app/test/test_stack_perf.c+8 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchOlivier Matz
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [dpdk-dev] [PATCH 0/3] add lock-free stack support discovery

The lock-free stack implementation (RTE_STACK_F_LF) is supported only on a subset of platforms, namely x86_64 and arm64. Platforms supporting 128b atomics have to opt-in to a generic or C11 implementations. All other platforms use a stubbed implementation for push/pop operations which are basically NOPs. However rte_stack_create() will not fail and application can proceed assuming it has a working lock-free stack.

This means that among other things the stack_lf fast and perf tests will fail as if implementation is wrong (which one can argue is). Therefore this patchset tries to give user a way to check whether a lock_free is supported or not both at compile time (build flag) and at runtime (ENOTSUP errno in rte_stack_create).

I have added cc to [email protected] because check-git-log.sh suggested it. I'm not sure if adding a binary compatible change to API is worth [email protected].

Stanislaw Kardach (3):
stack: update lock-free supported archs
stack: add compile flag for lock-free support
test: run lock-free stack tests when supported

 app/test/test_stack.c                  | 4 ++++
 app/test/test_stack_perf.c             | 4 ++++
 doc/guides/rel_notes/release_21_05.rst | 4 ++++
 lib/librte_stack/rte_stack.c           | 4 +++-
 lib/librte_stack/rte_stack.h           | 3 ++-
 lib/librte_stack/rte_stack_lf.h        | 5 +++++
 6 files changed, 22 insertions(+), 2 deletions(-)
Signature · 1 line
2.27.0