eal: do not panic on hugepage info init
authorAaron Conole <aconole@redhat.com>
Wed, 22 Mar 2017 20:19:29 +0000 (16:19 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Mar 2017 13:50:37 +0000 (15:50 +0200)
commit547a61af71889bfd26ee1f0b10c7ec50b94cc3e4
tree64bc730113d5af2dd451e2743df9801469fbf6f3
parent37e97ad2c56a69d9e8958925d5348b72c8066e57
eal: do not panic on hugepage info init

When attempting to scan hugepages, signal to the eal that an error has
occurred, rather than performing a panic.

If we fail to acquire hugepage information, simply signal an error to
the application.  This clears the run_once counter, allowing the user or
application to take a corrective action and retry.

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/linuxapp/eal/eal.c
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c