]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/bsdapp/eal/eal.c
eal: read and parse device option separately
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal.c
index 80fe21de3c17c3ec0f0ecb7d18939f36f745203a..5fa598842d855ba217a75b237c88d5a538b5e52e 100644 (file)
@@ -614,6 +614,11 @@ rte_eal_init(int argc, char **argv)
                rte_config.master_lcore, thread_id, cpuset,
                ret == 0 ? "" : "...");
 
+       if (eal_option_device_parse()) {
+               rte_errno = ENODEV;
+               return -1;
+       }
+
        if (rte_bus_scan()) {
                rte_eal_init_alert("Cannot scan the buses for devices\n");
                rte_errno = ENODEV;