test/ipsec: fix result code for not supported
authorGagandeep Singh <g.singh@nxp.com>
Mon, 25 Jan 2021 08:15:33 +0000 (16:15 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 27 Jan 2021 19:58:14 +0000 (20:58 +0100)
commit8dda080a0938e527c95ace0f3203a239edec48f5
tree9d70472a1b4bc836a9e8d5214c21df0f8ceeac82
parent384bac8d65552e429bffae962f2c0872541fe8a4
test/ipsec: fix result code for not supported

During SA creation, if the required algorithm is not supported,
drivers can return ENOTSUP. But in most of the IPsec test cases,
if the SA creation does not success, it just returns
TEST_FAILED.

This patch fixes this issue by returning the actual return values
from the driver to the application, so that it can make decisions
whether the test case is passed, failed or unsupported.

Fixes: 05fe65eb66b2 ("test/ipsec: introduce functional test")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_ipsec.c