]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/bsdapp/eal/eal.c
eal: set iopl only when needed
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal.c
index ae21e2866b614b11544f4a880409d3dc2bf1e0dd..c40a59a9b2bab91a1e0252c759b41f221385088b 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");