X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_stack%2Frte_stack_lf.h;h=eb106e64e66db3ed2517122537e8e3bb4be40964;hb=7feb2aee0e2cd854e43e1810ca57df126fdab76f;hp=518889a05a8111e61fbe91b36e2f8a7632b3bf00;hpb=7e6e609939a8d76bc5c0804d7cab91512dd607e4;p=dpdk.git diff --git a/lib/librte_stack/rte_stack_lf.h b/lib/librte_stack/rte_stack_lf.h index 518889a05a..eb106e64e6 100644 --- a/lib/librte_stack/rte_stack_lf.h +++ b/lib/librte_stack/rte_stack_lf.h @@ -5,11 +5,15 @@ #ifndef _RTE_STACK_LF_H_ #define _RTE_STACK_LF_H_ +#if !(defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_ARM64)) +#include "rte_stack_lf_stubs.h" +#else #ifdef RTE_USE_C11_MEM_MODEL #include "rte_stack_lf_c11.h" #else #include "rte_stack_lf_generic.h" #endif +#endif /** * @internal Push several objects on the lock-free stack (MT-safe). @@ -23,7 +27,7 @@ * @return * Actual number of objects enqueued. */ -static __rte_always_inline unsigned int __rte_experimental +static __rte_always_inline unsigned int __rte_stack_lf_push(struct rte_stack *s, void * const *obj_table, unsigned int n) @@ -61,7 +65,7 @@ __rte_stack_lf_push(struct rte_stack *s, * @return * - Actual number of objects popped. */ -static __rte_always_inline unsigned int __rte_experimental +static __rte_always_inline unsigned int __rte_stack_lf_pop(struct rte_stack *s, void **obj_table, unsigned int n) { struct rte_stack_lf_elem *first, *last = NULL;