X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_eal%2Flinuxapp%2Feal%2Feal.c;h=7c78f2dc248e4cf91fd0c64ddb241d28a6c7b474;hb=284ae3e9ff9a92575c28c858efd2c85c8de6d440;hp=d98d56d2fca2d2c54d43839b6172bc96864c8137;hpb=845afe51e4280aa28de5db90d4d239d8940f6e6c;p=dpdk.git diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index d98d56d2fc..7c78f2dc24 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -212,7 +212,7 @@ rte_eal_config_create(void) rte_panic("Cannot mmap memory for rte_config\n"); } memcpy(rte_mem_cfg_addr, &early_mem_config, sizeof(early_mem_config)); - rte_config.mem_config = (struct rte_mem_config *) rte_mem_cfg_addr; + rte_config.mem_config = rte_mem_cfg_addr; /* store address of the config in the config itself so that secondary * processes could later map the config into this exact location */ @@ -492,8 +492,6 @@ eal_log_level_parse(int argc, char **argv) argvopt = argv; optind = 1; - eal_reset_internal_config(&internal_config); - while ((opt = getopt_long(argc, argvopt, eal_short_options, eal_long_options, &option_index)) != EOF) { @@ -776,6 +774,8 @@ rte_eal_init(int argc, char **argv) thread_id = pthread_self(); + eal_reset_internal_config(&internal_config); + /* set log level as early as possible */ eal_log_level_parse(argc, argv); @@ -830,13 +830,6 @@ rte_eal_init(int argc, char **argv) return -1; } - if (rte_eal_pci_init() < 0) { - rte_eal_init_alert("Cannot init PCI\n"); - rte_errno = EPROTO; - rte_atomic32_clear(&run_once); - return -1; - } - #ifdef VFIO_PRESENT if (rte_eal_vfio_setup() < 0) { rte_eal_init_alert("Cannot init VFIO\n"); @@ -946,16 +939,6 @@ rte_eal_init(int argc, char **argv) return -1; } - /* Probe & Initialize PCI devices */ - if (rte_eal_pci_probe()) { - rte_eal_init_alert("Cannot probe PCI\n"); - rte_errno = ENOTSUP; - return -1; - } - - if (rte_eal_dev_init() < 0) - rte_eal_init_alert("Cannot init pmd devices\n"); - rte_eal_mcfg_complete(); return fctret;