git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ethdev: extend flow metadata
[dpdk.git]
/
lib
/
librte_stack
/
rte_stack_lf.h
diff --git
a/lib/librte_stack/rte_stack_lf.h
b/lib/librte_stack/rte_stack_lf.h
index
bfd6801
..
e67630c
100644
(file)
--- a/
lib/librte_stack/rte_stack_lf.h
+++ b/
lib/librte_stack/rte_stack_lf.h
@@
-5,7
+5,15
@@
#ifndef _RTE_STACK_LF_H_
#define _RTE_STACK_LF_H_
#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"
#include "rte_stack_lf_generic.h"
+#endif
+#endif
/**
* @internal Push several objects on the lock-free stack (MT-safe).
/**
* @internal Push several objects on the lock-free stack (MT-safe).
@@
-19,7
+27,8
@@
* @return
* Actual number of objects enqueued.
*/
* @return
* Actual number of objects enqueued.
*/
-static __rte_always_inline unsigned int __rte_experimental
+__rte_experimental
+static __rte_always_inline unsigned int
__rte_stack_lf_push(struct rte_stack *s,
void * const *obj_table,
unsigned int n)
__rte_stack_lf_push(struct rte_stack *s,
void * const *obj_table,
unsigned int n)
@@
-57,7
+66,8
@@
__rte_stack_lf_push(struct rte_stack *s,
* @return
* - Actual number of objects popped.
*/
* @return
* - Actual number of objects popped.
*/
-static __rte_always_inline unsigned int __rte_experimental
+__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;
__rte_stack_lf_pop(struct rte_stack *s, void **obj_table, unsigned int n)
{
struct rte_stack_lf_elem *first, *last = NULL;