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
power: extend guest channel API for reading
[dpdk.git]
/
lib
/
librte_stack
/
rte_stack.h
diff --git
a/lib/librte_stack/rte_stack.h
b/lib/librte_stack/rte_stack.h
index
93c360c
..
27ddb19
100644
(file)
--- a/
lib/librte_stack/rte_stack.h
+++ b/
lib/librte_stack/rte_stack.h
@@
-112,7
+112,8
@@
struct rte_stack {
* @return
* Actual number of objects pushed (either 0 or *n*).
*/
* @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_push(struct rte_stack *s, void * const *obj_table, unsigned int n)
{
RTE_ASSERT(s != NULL);
rte_stack_push(struct rte_stack *s, void * const *obj_table, unsigned int n)
{
RTE_ASSERT(s != NULL);
@@
-139,7
+140,8
@@
rte_stack_push(struct rte_stack *s, void * const *obj_table, unsigned int n)
* @return
* Actual number of objects popped (either 0 or *n*).
*/
* @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_pop(struct rte_stack *s, void **obj_table, unsigned int n)
{
RTE_ASSERT(s != NULL);
rte_stack_pop(struct rte_stack *s, void **obj_table, unsigned int n)
{
RTE_ASSERT(s != NULL);
@@
-162,7
+164,8
@@
rte_stack_pop(struct rte_stack *s, void **obj_table, unsigned int n)
* @return
* The number of used entries in the stack.
*/
* @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_count(struct rte_stack *s)
{
RTE_ASSERT(s != NULL);
rte_stack_count(struct rte_stack *s)
{
RTE_ASSERT(s != NULL);
@@
-184,7
+187,8
@@
rte_stack_count(struct rte_stack *s)
* @return
* The number of free entries in the stack.
*/
* @return
* The number of free entries in the stack.
*/
-static __rte_always_inline unsigned int __rte_experimental
+__rte_experimental
+static __rte_always_inline unsigned int
rte_stack_free_count(struct rte_stack *s)
{
RTE_ASSERT(s != NULL);
rte_stack_free_count(struct rte_stack *s)
{
RTE_ASSERT(s != NULL);
@@
-222,7
+226,8
@@
rte_stack_free_count(struct rte_stack *s)
* - ENOMEM - insufficient memory to create the stack
* - ENAMETOOLONG - name size exceeds RTE_STACK_NAMESIZE
*/
* - ENOMEM - insufficient memory to create the stack
* - ENAMETOOLONG - name size exceeds RTE_STACK_NAMESIZE
*/
-struct rte_stack *__rte_experimental
+__rte_experimental
+struct rte_stack *
rte_stack_create(const char *name, unsigned int count, int socket_id,
uint32_t flags);
rte_stack_create(const char *name, unsigned int count, int socket_id,
uint32_t flags);
@@
-235,7
+240,8
@@
rte_stack_create(const char *name, unsigned int count, int socket_id,
* @param s
* Stack to free
*/
* @param s
* Stack to free
*/
-void __rte_experimental
+__rte_experimental
+void
rte_stack_free(struct rte_stack *s);
/**
rte_stack_free(struct rte_stack *s);
/**
@@
-252,7
+258,8
@@
rte_stack_free(struct rte_stack *s);
* - ENOENT - Stack with name *name* not found.
* - EINVAL - *name* pointer is NULL.
*/
* - ENOENT - Stack with name *name* not found.
* - EINVAL - *name* pointer is NULL.
*/
-struct rte_stack * __rte_experimental
+__rte_experimental
+struct rte_stack *
rte_stack_lookup(const char *name);
#ifdef __cplusplus
rte_stack_lookup(const char *name);
#ifdef __cplusplus