test/crypto: handle unsupported error on session init
authorAnkur Dwivedi <adwivedi@marvell.com>
Thu, 7 May 2020 15:26:10 +0000 (20:56 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 11 May 2020 11:17:43 +0000 (13:17 +0200)
commit439d222ba01893cdbe92dd362456bfb6398a986f
tree7e3040ecd0d583016f057ee04c8eb2f2b68d6af6
parent90ecace4f6d741c944243dda3ae88c882d4ac12d
test/crypto: handle unsupported error on session init

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 features. For other return values like -EINVAL
or -ENOMEM the test can be treated as failure.

Signed-off-by: Ankur Dwivedi <adwivedi@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
app/test/test_cryptodev_blockcipher.c