* [dpdk-dev] [PATCH] eal/common: Fix enabled core number with core list argument
@ 2015-01-20 18:54 Remi Pommarel
2015-01-27 11:45 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Remi Pommarel @ 2015-01-20 18:54 UTC (permalink / raw)
To: dev
When using core list argument to define which core to enable (ie -l) the
core_num field of the rte configuration is not updated the same way as using
coremask. This causes rte_lcore_num() to yield different value from the one
using coremask.
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
---
lib/librte_eal/common/eal_common_options.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c
index e2810ab..67e02dc 100644
--- a/lib/librte_eal/common/eal_common_options.c
+++ b/lib/librte_eal/common/eal_common_options.c
@@ -268,6 +268,9 @@ eal_parse_corelist(const char *corelist)
if (count == 0)
return -1;
+ /* Update the count of enabled logical cores of the EAL configuration */
+ cfg->lcore_count = count;
+
lcores_parsed = 1;
return 0;
}
--
2.0.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-27 11:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-20 18:54 [dpdk-dev] [PATCH] eal/common: Fix enabled core number with core list argument Remi Pommarel
2015-01-27 11:45 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).