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