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
ipc: end multiprocess thread during cleanup
[dpdk.git]
/
lib
/
stack
/
rte_stack.c
diff --git
a/lib/stack/rte_stack.c
b/lib/stack/rte_stack.c
index
8a51fba
..
56bf2c8
100644
(file)
--- a/
lib/stack/rte_stack.c
+++ b/
lib/stack/rte_stack.c
@@
-3,9
+3,9
@@
*/
#include <string.h>
*/
#include <string.h>
+#include <sys/queue.h>
#include <rte_string_fns.h>
#include <rte_string_fns.h>
-#include <rte_atomic.h>
#include <rte_eal.h>
#include <rte_eal_memconfig.h>
#include <rte_errno.h>
#include <rte_eal.h>
#include <rte_eal_memconfig.h>
#include <rte_errno.h>
@@
-64,9
+64,11
@@
rte_stack_create(const char *name, unsigned int count, int socket_id,
#ifdef RTE_ARCH_64
RTE_BUILD_BUG_ON(sizeof(struct rte_stack_lf_head) != 16);
#ifdef RTE_ARCH_64
RTE_BUILD_BUG_ON(sizeof(struct rte_stack_lf_head) != 16);
-#else
+#endif
+#if !defined(RTE_STACK_LF_SUPPORTED)
if (flags & RTE_STACK_F_LF) {
STACK_LOG_ERR("Lock-free stack is not supported on your platform\n");
if (flags & RTE_STACK_F_LF) {
STACK_LOG_ERR("Lock-free stack is not supported on your platform\n");
+ rte_errno = ENOTSUP;
return NULL;
}
#endif
return NULL;
}
#endif
@@
-192,4
+194,4
@@
rte_stack_lookup(const char *name)
return r;
}
return r;
}
-RTE_LOG_REGISTER
(stack_logtype, lib.stack
, NOTICE);
+RTE_LOG_REGISTER
_DEFAULT(stack_logtype
, NOTICE);