X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flibrte_eal%2Fcommon%2Feal_common_lcore.c;h=2cd413205c5a018798c18f2094540d8461c16692;hb=a02a9135dcc197d319a1c98c5dc022bd329e3d1b;hp=845140b12115f5fcc7db8d68bb6b6ba0f828cb6d;hpb=bd8bf7e172abfa765e0365f4e80ed99772309b3b;p=dpdk.git diff --git a/lib/librte_eal/common/eal_common_lcore.c b/lib/librte_eal/common/eal_common_lcore.c index 845140b121..2cd413205c 100644 --- a/lib/librte_eal/common/eal_common_lcore.c +++ b/lib/librte_eal/common/eal_common_lcore.c @@ -63,6 +63,8 @@ rte_eal_cpu_init(void) * ones and enable them by default. */ for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { + lcore_config[lcore_id].core_index = count; + /* init cpuset for per lcore config */ CPU_ZERO(&lcore_config[lcore_id].cpuset); @@ -70,6 +72,7 @@ rte_eal_cpu_init(void) lcore_config[lcore_id].detected = eal_cpu_detected(lcore_id); if (lcore_config[lcore_id].detected == 0) { config->lcore_role[lcore_id] = ROLE_OFF; + lcore_config[lcore_id].core_index = -1; continue; } @@ -101,7 +104,7 @@ rte_eal_cpu_init(void) RTE_LOG(DEBUG, EAL, "Support maximum %u logical core(s) by configuration.\n", RTE_MAX_LCORE); - RTE_LOG(DEBUG, EAL, "Detected %u lcore(s)\n", config->lcore_count); + RTE_LOG(INFO, EAL, "Detected %u lcore(s)\n", config->lcore_count); return 0; }