eal: return error when option register fails
authorGaetan Rivet <gaetan.rivet@6wind.com>
Thu, 20 Dec 2018 17:06:47 +0000 (18:06 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 Jan 2019 01:40:40 +0000 (02:40 +0100)
commit68c4768d362c2598fa924388e4a8f0e93eb28544
tree543e53d607257ec1819dc603176d01dc9199cd96
parente48839afffc4c1642ea2c8c5394f68ec657a1dbe
eal: return error when option register fails

Make rte_option_register return a negative value when
an error occur.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
lib/librte_eal/common/include/rte_option.h
lib/librte_eal/common/rte_option.c