eal: fix tail blank check in --lcores argument
authorWei Dai <wei.dai@intel.com>
Wed, 27 Jul 2016 11:25:56 +0000 (19:25 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 28 Jul 2016 16:11:30 +0000 (18:11 +0200)
commite7e769b409eb9239d128c29a60fcaa76506cd5b1
tree6b916d4635aa87f3b6ff96e794b01f1d2d59b68d
parentf40c74545071b64a9a9174275efca25dc41e8d2f
eal: fix tail blank check in --lcores argument

the tail blank after a group of lcore or cpu set
will make check of its end character fail.
for example: --lcores '(0-3)@(0-3)   ,(4-5)@(4-5)',
the next character after cpu set (0-3) is not ','
or '\0', which fail the check in eal_parse_lcores( ).

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