[dpdk-dev] [PATCH] eal_lcore.c: print the supported maximum lcores as configured, and detected lcores on eal cpu init
Wang Sheng-Hui
shhuiw at gmail.com
Mon Apr 14 07:37:04 CEST 2014
Print the maximum lcore(s) as configured, and the number of lcore(s) detected
on eal cpu init as debug info besides the not separate detected/not-detected
lcore info.
Signed-off-by: Wang Sheng-Hui <shhuiw at gmail.com>
---
lib/librte_eal/linuxapp/eal/eal_lcore.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/librte_eal/linuxapp/eal/eal_lcore.c b/lib/librte_eal/linuxapp/eal/eal_lcore.c
index d310d85..da20fa3 100644
--- a/lib/librte_eal/linuxapp/eal/eal_lcore.c
+++ b/lib/librte_eal/linuxapp/eal/eal_lcore.c
@@ -182,6 +182,9 @@ rte_eal_cpu_init(void)
}
/* Set the count of enabled logical cores of the EAL configuration */
config->lcore_count = count;
+ 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);
return 0;
}
--
1.8.3.2
More information about the dev
mailing list