app/testpmd: fix running without Xen whereas enabled
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 17 Mar 2016 14:47:03 +0000 (15:47 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Apr 2016 14:44:15 +0000 (16:44 +0200)
commitbece7b6cf6849331c1817e1034c03fab251952a7
tree1c8184d77076fbdf685ab611b1d9942419b9261e
parentfe671356ed0d9b349bd257b8fcb30adf7da103e1
app/testpmd: fix running without Xen whereas enabled

With LIBRTE_PMD_XENVIRT enabled testpmd is built in a way to ONLY work
in XEN environments.
It will surface as:
   PMD: gntalloc: ioctl error
   EAL: Error - exiting with code: 1
     Cause: Creation of mbuf pool for socket 0 failed

With LIBRTE_PMD_XENVIRT enabled this now tries the xen style grant
table allocation, but falls back gracefully for the normal allocation.

The only thing left in the log will be the
   PMD: gntalloc: ioctl error

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
app/test-pmd/testpmd.c