[dpdk-dev,RFC,12/23] eal: do not panic on vfio failure
Checks
Commit Message
Signed-off-by: Aaron Conole <aconole@redhat.com>
---
lib/librte_eal/linuxapp/eal/eal.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
@@ -826,8 +826,11 @@ rte_eal_init(int argc, char **argv)
}
#ifdef VFIO_PRESENT
- if (rte_eal_vfio_setup() < 0)
- rte_panic("Cannot init VFIO\n");
+ if (rte_eal_vfio_setup() < 0) {
+ RTE_LOG (ERR, EAL, "Cannot init VFIO\n");
+ errno = ENOTSUP;
+ return -1;
+ }
#endif
if (rte_eal_memory_init() < 0)