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
mem: fix typo in API description
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_common.h
diff --git
a/lib/librte_eal/common/include/rte_common.h
b/lib/librte_eal/common/include/rte_common.h
index
bcf8afd
..
05a3a64
100644
(file)
--- a/
lib/librte_eal/common/include/rte_common.h
+++ b/
lib/librte_eal/common/include/rte_common.h
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2010-201
4
Intel Corporation
+ * Copyright(c) 2010-201
9
Intel Corporation
*/
#ifndef _RTE_COMMON_H_
*/
#ifndef _RTE_COMMON_H_
@@
-24,6
+24,9
@@
extern "C" {
#include <rte_config.h>
#include <rte_config.h>
+/* OS specific include */
+#include <rte_os.h>
+
#ifndef typeof
#define typeof __typeof__
#endif
#ifndef typeof
#define typeof __typeof__
#endif
@@
-103,8
+106,10
@@
typedef uint16_t unaligned_uint16_t;
* Priority number must be above 100.
* Lowest number is the first to run.
*/
* Priority number must be above 100.
* Lowest number is the first to run.
*/
+#ifndef RTE_INIT_PRIO /* Allow to override from EAL */
#define RTE_INIT_PRIO(func, prio) \
static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)
#define RTE_INIT_PRIO(func, prio) \
static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)
+#endif
/**
* Run function before main() with low priority.
/**
* Run function before main() with low priority.
@@
-126,8
+131,10
@@
static void __attribute__((constructor(RTE_PRIO(prio)), used)) func(void)
* Priority number must be above 100.
* Lowest number is the last to run.
*/
* Priority number must be above 100.
* Lowest number is the last to run.
*/
+#ifndef RTE_FINI_PRIO /* Allow to override from EAL */
#define RTE_FINI_PRIO(func, prio) \
static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
#define RTE_FINI_PRIO(func, prio) \
static void __attribute__((destructor(RTE_PRIO(prio)), used)) func(void)
+#endif
/**
* Run after main() with high priority.
/**
* Run after main() with high priority.
@@
-352,7
+359,7
@@
rte_is_power_of_2(uint32_t n)
* Aligns input parameter to the next power of 2
*
* @param x
* Aligns input parameter to the next power of 2
*
* @param x
- * The integer value to al
gi
n
+ * The integer value to al
ig
n
*
* @return
* Input parameter aligned to the next power of 2
*
* @return
* Input parameter aligned to the next power of 2
@@
-370,7
+377,7
@@
rte_align32pow2(uint32_t x)
* Aligns input parameter to the previous power of 2
*
* @param x
* Aligns input parameter to the previous power of 2
*
* @param x
- * The integer value to al
gi
n
+ * The integer value to al
ig
n
*
* @return
* Input parameter aligned to the previous power of 2
*
* @return
* Input parameter aligned to the previous power of 2