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
eal: set iopl only when needed
[dpdk.git]
/
lib
/
librte_eal
/
bsdapp
/
eal
/
eal.c
diff --git
a/lib/librte_eal/bsdapp/eal/eal.c
b/lib/librte_eal/bsdapp/eal/eal.c
index
ae21e28
..
c40a59a
100644
(file)
--- a/
lib/librte_eal/bsdapp/eal/eal.c
+++ b/
lib/librte_eal/bsdapp/eal/eal.c
@@
-490,7
+490,7
@@
int rte_eal_has_hugepages(void)
}
/* Abstraction for port I/0 privilege */
}
/* Abstraction for port I/0 privilege */
-
static
int
+int
rte_eal_iopl_init(void)
{
int fd = -1;
rte_eal_iopl_init(void)
{
int fd = -1;
@@
-551,9
+551,6
@@
rte_eal_init(int argc, char **argv)
rte_config_init();
rte_config_init();
- if (rte_eal_iopl_init() == 0)
- rte_config.flags |= EAL_FLG_HIGH_IOPL;
-
if (rte_eal_cpu_init() < 0)
rte_panic("Cannot detect lcores\n");
if (rte_eal_cpu_init() < 0)
rte_panic("Cannot detect lcores\n");