eal: fix errno on service cores init failure
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 22 Oct 2020 08:26:29 +0000 (10:26 +0200)
committerOlivier Matz <olivier.matz@6wind.com>
Thu, 26 Nov 2020 13:43:19 +0000 (14:43 +0100)
commit4ecda7f05293d76f07e313f1e778806ae792ed0c
tree4cd21a6d1bf4ce59cc2c398619e2405a95a6eb6b
parentd2480ee6d34be59ff03681493b100cdc852355cc
eal: fix errno on service cores init failure

Currently, when rte_service_init() fails at initialization, we
see the following message:

  Cannot init EAL: Exec format error

This error code does 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>
lib/librte_eal/freebsd/eal.c
lib/librte_eal/linux/eal.c