]> git.droids-corp.org - dpdk.git/commit
cryptodev: modify return value for asym session create
authorCiara Power <ciara.power@intel.com>
Fri, 11 Feb 2022 09:29:09 +0000 (09:29 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Sat, 12 Feb 2022 09:26:39 +0000 (10:26 +0100)
commit757f40e28e1c681054dcc1923b19c7fbeb7ae626
treebb337a3bef12e76d468529fb9e75e456e4535786
parent92d55afe0ffa8e98cee454fa2c6f60c6bec81f04
cryptodev: modify return value for asym session create

Rather than the asym session create function returning a session on
success, and a NULL value on error, it is modified to now return int
values - 0 on success or -EINVAL/-ENOTSUP/-ENOMEM on failure.
The session to be used is passed as input.

This adds clarity on the failure of the create function, which enables
treating the -ENOTSUP return as TEST_SKIPPED in test apps.

Signed-off-by: Ciara Power <ciara.power@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test-crypto-perf/cperf_ops.c
app/test/test_cryptodev_asym.c
doc/guides/rel_notes/release_22_03.rst
lib/cryptodev/rte_cryptodev.c
lib/cryptodev/rte_cryptodev.h
lib/cryptodev/rte_cryptodev_trace.h