[PATCH v2 4/4] crypto: modify return value for asym session create

Zhang, Roy Fan roy.fan.zhang at intel.com
Thu Jan 27 12:06:18 CET 2022


> -----Original Message-----
> From: Power, Ciara <ciara.power at intel.com>
> Sent: Monday, January 24, 2022 3:04 PM
> To: dev at dpdk.org
> Cc: Zhang, Roy Fan <roy.fan.zhang at intel.com>; gakhil at marvell.com;
> anoobj at marvell.com; mdr at ashroe.eu; Power, Ciara
> <ciara.power at intel.com>; Doherty, Declan <declan.doherty at intel.com>
> Subject: [PATCH v2 4/4] crypto: 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 at intel.com>
> ---
Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the dev mailing list