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
lib: work around forward reference to enum types
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
generic
/
rte_cpuflags.h
diff --git
a/lib/librte_eal/common/include/generic/rte_cpuflags.h
b/lib/librte_eal/common/include/generic/rte_cpuflags.h
index
c1da357
..
71321f3
100644
(file)
--- a/
lib/librte_eal/common/include/generic/rte_cpuflags.h
+++ b/
lib/librte_eal/common/include/generic/rte_cpuflags.h
@@
-44,6
+44,7
@@
/**
* Enumeration of all CPU features supported
*/
/**
* Enumeration of all CPU features supported
*/
+__extension__
enum rte_cpu_flag_t;
/**
enum rte_cpu_flag_t;
/**
@@
-55,6
+56,7
@@
enum rte_cpu_flag_t;
* flag name
* NULL if flag ID is invalid
*/
* flag name
* NULL if flag ID is invalid
*/
+__extension__
const char *
rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);
const char *
rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);
@@
-68,6
+70,7
@@
rte_cpu_get_flag_name(enum rte_cpu_flag_t feature);
* 0 if flag is not available
* -ENOENT if flag is invalid
*/
* 0 if flag is not available
* -ENOENT if flag is invalid
*/
+__extension__
int
rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);
int
rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature);