numam-dpdk/doc/guides
Stanislaw Kardach 1abb185d6c stack: allow lock-free only on relevant architectures
Since commit 7911ba0473 ("stack: enable lock-free implementation for
aarch64"), lock-free stack is supported on arm64 but this description was
missing from the doxygen for the flag.

Currently it is impossible to detect programmatically whether lock-free
implementation of rte_stack is supported. One could check whether the
header guard for lock-free stubs is defined (_RTE_STACK_LF_STUBS_H_) but
that's an unstable implementation detail. Because of that currently all
lock-free ring creations silently succeed (as long as the stack header
is 16B long) which later leads to push and pop operations being NOPs.
The observable effect is that stack_lf_autotest fails on platforms not
supporting the lock-free. Instead it should just skip the lock-free test
altogether.

This commit adds a new errno value (ENOTSUP) that may be returned by
rte_stack_create() to indicate that a given combination of flags is not
supported on a current platform.
This is detected by checking a compile-time flag in the include logic in
rte_stack_lf.h which may be used by applications to check the lock-free
support at compile time.

Use the added RTE_STACK_LF_SUPPORTED flag to disable the lock-free stack
tests at the compile time.
Perf test doesn't fail because rte_ring_create() succeeds, however
marking this test as skipped gives a better indication of what actually
was tested.

Fixes: 7911ba0473 ("stack: enable lock-free implementation for aarch64")

Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2021-05-03 18:46:15 +02:00
..
bbdevs
compressdevs compress/mlx5: add supported capabilities 2021-01-27 20:40:03 +01:00
contributing lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
cryptodevs doc: fix names of UIO drivers 2021-04-22 00:06:47 +02:00
eventdevs event/dlb: remove driver 2021-04-12 09:21:30 +02:00
faq
freebsd_gsg buildtools: use Python pmdinfogen 2021-01-25 23:23:41 +01:00
howto doc: replace hugepages commands with dedicated tool 2021-02-11 23:26:37 +01:00
linux_gsg doc: announce support of Alpine Linux 2021-04-22 00:14:11 +02:00
mempool mempool/cnxk: add batch operation init 2021-04-09 08:32:24 +02:00
nics doc: fix names of UIO drivers 2021-04-22 00:06:47 +02:00
platform mempool/cnxk: add build infra and doc 2021-04-09 08:32:24 +02:00
prog_guide ethdev: add pre-defined meter policy API 2021-04-21 12:22:17 +02:00
rawdevs
regexdevs regex/mlx5: add data path scattered mbuf process 2021-04-08 22:52:55 +02:00
rel_notes stack: allow lock-free only on relevant architectures 2021-05-03 18:46:15 +02:00
sample_app_ug doc: fix names of UIO drivers 2021-04-22 00:06:47 +02:00
testpmd_app_ug app/testpmd: show link flow control info 2021-04-21 13:43:41 +02:00
tools doc: fix dpdk-graph-crypto-perf dependencies 2021-04-16 12:43:33 +02:00
vdpadevs doc: simplify OS support in features matrix 2021-01-21 14:53:16 +01:00
windows_gsg doc: update minimum required Meson version for Windows 2021-04-16 19:52:58 +02:00
conf.py doc: fix sphinx rtd theme import in GHA 2021-04-02 01:39:34 +02:00
custom.css
index.rst
meson.build build: change indentation in infrastructure files 2021-04-21 14:04:09 +02:00