eal: fix enabled core number with -l option
authorRemi Pommarel <repk@triplefau.lt>
Tue, 20 Jan 2015 18:54:43 +0000 (19:54 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 27 Jan 2015 11:22:40 +0000 (12:22 +0100)
commitdd9fecd0bca75f4f4ed535291eb17de8811d77f9
tree5f3d05df2c2c857e4e9a3394faa392998039ac85
parent8acbad88c4fa8c1ecd9ba01c8895159990429622
eal: fix enabled core number with -l option

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.

Fixes: d888cb8b9613 ("add core list input format")

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/eal_common_options.c