eal: fix errno in IPC API
authorAnatoly Burakov <anatoly.burakov@intel.com>
Sat, 10 Feb 2018 13:15:15 +0000 (13:15 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 13 Feb 2018 13:55:01 +0000 (14:55 +0100)
commitd9fff8a318264644d20674e62cddcd365253e7fe
treec9f3e9cec5b9fea1adf4a9aa261a6da76816bbd4
parent3e8ea3d3d4b71a2673dbd2ef96a9a2dbf19033a4
eal: fix errno in IPC API

rte_errno values should not be negative.

Fixes: bacaa2754017 ("eal: add channel for multi-process communication")
Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c