X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_stack%2Frte_stack_std.h;h=7142cbf8ec4b285429784235ba3d33efa0b0d0f6;hb=e162b8e910d2acd33d47844a776ea58e50231ce6;hp=5dc940932b5584ea4d7abfe927c581fea80c484e;hpb=05d3b5283cc1a61b2e204ddd6bc30b6f3053f280;p=dpdk.git diff --git a/lib/librte_stack/rte_stack_std.h b/lib/librte_stack/rte_stack_std.h index 5dc940932b..7142cbf8ec 100644 --- a/lib/librte_stack/rte_stack_std.h +++ b/lib/librte_stack/rte_stack_std.h @@ -19,7 +19,8 @@ * @return * Actual number of objects pushed (either 0 or *n*). */ -static __rte_always_inline unsigned int __rte_experimental +__rte_experimental +static __rte_always_inline unsigned int __rte_stack_std_push(struct rte_stack *s, void * const *obj_table, unsigned int n) { @@ -58,7 +59,8 @@ __rte_stack_std_push(struct rte_stack *s, void * const *obj_table, * @return * Actual number of objects popped (either 0 or *n*). */ -static __rte_always_inline unsigned int __rte_experimental +__rte_experimental +static __rte_always_inline unsigned int __rte_stack_std_pop(struct rte_stack *s, void **obj_table, unsigned int n) { struct rte_stack_std *stack = &s->stack_std; @@ -92,7 +94,8 @@ __rte_stack_std_pop(struct rte_stack *s, void **obj_table, unsigned int n) * @return * The number of used entries in the stack. */ -static __rte_always_inline unsigned int __rte_experimental +__rte_experimental +static __rte_always_inline unsigned int __rte_stack_std_count(struct rte_stack *s) { return (unsigned int)s->stack_std.len;