service: propagate init error in EAL
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 13 Jan 2021 08:28:06 +0000 (09:28 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 15 Jan 2021 15:32:19 +0000 (16:32 +0100)
commitde6aede17bd3abe51478f33131a4c41da83c42da
tree34821085e7436219bfccb0637ead3326cfff520c
parentaab8be44974b32ba735905fa27dff43f02662b90
service: propagate init error in EAL

Currently, when rte_service_init() fails at initialization, the
application always gets a ENOEXEC error code. For example, with testpmd,
this is displayed as:

  Cannot init EAL: Exec format error

This error code does not describe the real issue. Instead, use the error
code returned by the function.

Fixes: e39824500825 ("service: initialize with EAL")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/librte_eal/freebsd/eal.c
lib/librte_eal/linux/eal.c
lib/librte_eal/windows/eal.c