eal: add core list input format
authorDidier Pallard <didier.pallard@6wind.com>
Fri, 27 Jun 2014 14:09:32 +0000 (16:09 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Nov 2014 12:33:35 +0000 (13:33 +0100)
commitd888cb8b9613c5f72015830d143150ed90207a71
treea962f82da6c6239cecd3f478e1ecfad5da856a30
parent8552f950ee9d90466e70176352fd2491bd6118dd
eal: add core list input format

In current version, used cores can only be specified using a bitmask.
It will now be possible to specify cores in 2 different ways:
- Using a bitmask (-c [0x]nnn): bitmask must be in hex format
- Using a list in following format: -l <c1>[-c2][,c3[-c4],...]

The letter -l can stand for lcore or list.

-l 0-7,16-23,31 being equivalent to -c 0x80FF00FF

Signed-off-by: Didier Pallard <didier.pallard@6wind.com>
Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/test_eal_flags.c
lib/librte_eal/common/eal_common_options.c