summaryrefslogtreecommitdiff
path: root/lib/stack/rte_stack_lf_generic.h
AgeCommit message (Collapse)Author
2023-10-30stack: use stdatomic APITyler Retzlaff
Replace the use of gcc builtin __atomic_xxx intrinsics with corresponding rte_atomic_xxx optional stdatomic API Signed-off-by: Tyler Retzlaff <[email protected]> Acked-by: Konstantin Ananyev <[email protected]> Acked-by: David Marchand <[email protected]>
2023-06-09stack: replace legacy atomics with GCC builtin atomicsTyler Retzlaff
Replace the use of rte_atomic.h types and functions, instead use GCC supplied C++11 memory model builtins. Signed-off-by: Tyler Retzlaff <[email protected]> Acked-by: Morten Brørup <[email protected]>
2021-09-27stack: fix reload head when pop failsJulien Meunier
The previous commit 18effad9cfa7 ("stack: reload head when pop fails") only changed C11 implementation, not generic implementation. List head must be loaded right before continue (when failed to find the new head). Without this, one thread might keep trying and failing to pop items without ever loading the new correct head. Fixes: 3340202f5954 ("stack: add lock-free implementation") Cc: [email protected] Signed-off-by: Julien Meunier <[email protected]> Acked-by: Olivier Matz <[email protected]>
2021-04-21lib: remove librte_ prefix from directory namesBruce Richardson
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <[email protected]>