eal: fix parsing of option --lcores
authorWei Dai <wei.dai@intel.com>
Wed, 27 Jul 2016 11:23:41 +0000 (19:23 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 28 Jul 2016 16:11:13 +0000 (18:11 +0200)
commitf40c74545071b64a9a9174275efca25dc41e8d2f
tree50417b02a5aaab6df38e6eb511716be0fc9d294c
parent75edc66a912eb4aee472ad8018dcde21c469e467
eal: fix parsing of option --lcores

The '-' in lcore set overrides cpu set of following
lcore set in the argument of EAL option --lcores.
for example --locres '0-2,(3-5)@(3,4),6@(5,6),7@(5-7)',
0-2 make lflags=1 which indeed suppress following
cpu set (3,4), (5,6) and (5-7) after @ .

Fixes: 53e54bf81700 ("eal: new option --lcores for cpu assignment")

Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/eal_common_options.c