[PATCH] cryptodev: clarify error codes returned

Power, Ciara ciara.power at intel.com
Mon May 8 14:32:54 CEST 2023


Hi Anoob,

> -----Original Message-----
> From: Anoob Joseph <anoobj at marvell.com>
> Sent: Monday 24 April 2023 10:19
> To: Akhil Goyal <gakhil at marvell.com>; Fan Zhang
> <fanzhang.oss at gmail.com>
> Cc: Jerin Jacob <jerinj at marvell.com>; dev at dpdk.org
> Subject: [PATCH] cryptodev: clarify error codes returned
> 
> When symmetric sessions are created, it may fail due to non-critical errors.
> When PMD doesn't support the specific combination that application
> requested, it can return -ENOTSUP which can be handled so in application.
> The API is already setting rte_errno according to the reason of the failure.
> Clarifying this in the spec to list down possible error codes.
> 
> Fixes: bdce2564dbf7 ("cryptodev: rework session framework")
> 
> Signed-off-by: Anoob Joseph <anoobj at marvell.com>
> ---
>  lib/cryptodev/rte_cryptodev.h | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Acked-by: Ciara Power <ciara.power at intel.com>


More information about the dev mailing list