eal: check coremask against detected lcores
eal: check coremask against detected lcores

lcores that are set in coremask should be checked against lcores detected on
system. This way, we won't need to check them later.

Besides, if specifying an unavailable lcore, we currently panic in
eal_thread_loop() because pthread_setaffinity_np fails.
So this check will return an error with a more explicit message in
eal_parse_coremask().

"EAL: pthread_setaffinity_np failed
 PANIC in eal_thread_loop():
 cannot set affinity"

becomes :

"EAL: lcore 4 unavailable
 EAL: invalid coremask"

Signed-off-by: David Marchand <f28529695cfa9e3e1eb84e7072aa626af4abb18e@6wind.com>
Acked-by: Neil Horman <3316dc2d77df57653443c0391a5296176d6ca9c3@tuxdriver.com>

tsphillips/dpdk-fork,mixja/dpdk,msune/dpdk,john-mcnamara-intel/dpdk,msune/dpdk,tsphillips/dpdk-fork,john-mcnamara-intel/dpdk,venkynv/dpdk-mirror,tsphillips/dpdk-fork,venkynv/dpdk-mirror,msune/dpdk,venkynv/dpdk-mirror,mixja/dpdk,mixja/dpdk,john-mcnamara-intel/dpdk,venkynv/dpdk-mirror,mixja/dpdk,john-mcnamara-intel/dpdk,msune/dpdk,tsphillips/dpdk-fork