Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Imported Upstream version 16.11
[deb_dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_eal.h
diff --git
a/lib/librte_eal/common/include/rte_eal.h
b/lib/librte_eal/common/include/rte_eal.h
index
a71d6f5
..
d150b9d
100644
(file)
--- a/
lib/librte_eal/common/include/rte_eal.h
+++ b/
lib/librte_eal/common/include/rte_eal.h
@@
-44,6
+44,7
@@
#include <sched.h>
#include <rte_per_lcore.h>
#include <sched.h>
#include <rte_per_lcore.h>
+#include <rte_config.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-252,6
+253,9
@@
static inline int rte_gettid(void)
return RTE_PER_LCORE(_thread_id);
}
return RTE_PER_LCORE(_thread_id);
}
+#define RTE_INIT(func) \
+static void __attribute__((constructor, used)) func(void)
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif