eal: do not panic on CPU detection
authorAaron Conole <aconole@redhat.com>
Wed, 22 Mar 2017 20:19:27 +0000 (16:19 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Mar 2017 13:47:10 +0000 (15:47 +0200)
commit647644e51f4c7c4d7b5170408dca100dbc013838
tree181e40748fb2f5104e2469767867954bf3858521
parent24a535796824049fab8570d0b29e658470375876
eal: do not panic on CPU detection

There may be no way to gracefully recover, but the application
should be notified that a failure happened, rather than completely
aborting.  This allows the user to proceed with a "slow-path" type
solution.

After this change, the EAL CPU NUMA node resolution step can no longer
emit an rte_panic.  This aligns with the code in rte_eal_init, which
expects failures to return an error code.

Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/common/eal_common_lcore.c
lib/librte_eal/linuxapp/eal/eal.c