eal: do not panic on memzone init failure
authorAaron Conole <aconole@redhat.com>
Wed, 22 Mar 2017 20:19:31 +0000 (16:19 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Mar 2017 13:53:06 +0000 (15:53 +0200)
commitce3bede01e74f45fff611fdcf97bd6fe82b3f9a0
tree3926e3c8c6f4cf47162f14d84855486164eac5ea
parenta0222a4679e085bbce18264d28a08656391c46ee
eal: do not panic on memzone init failure

When memzone initialization fails, report the error to the calling
application rather than panic().  Without a good way of detaching /
releasing hugepages, at this point the application will have to restart.

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