From: Akhil Goyal Date: Sat, 9 May 2020 23:12:13 +0000 (+0530) Subject: test/crypto: skip unsupported session X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=e9703a54e41141ebcfd57db1d67d09ce61e58d29 test/crypto: skip unsupported session The session init routine rte_cryptodev_sym_session_init(), could return -ENOTSUP when the requested algo combination is not supported by the PMD. This should be treated as unsupported feature. Signed-off-by: Akhil Goyal Acked-by: Adam Dybkowski Acked-by: Anoob Joseph --- diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index e3df51985b..d86bdbf8ea 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -2050,6 +2050,8 @@ create_wireless_cipher_auth_session(uint8_t dev_id, status = rte_cryptodev_sym_session_init(dev_id, ut_params->sess, &ut_params->cipher_xform, ts_params->session_priv_mpool); + if (status == -ENOTSUP) + return status; TEST_ASSERT_EQUAL(status, 0, "session init failed"); TEST_ASSERT_NOT_NULL(ut_params->sess, "Session creation failed");