Hi Akhil, Arek, Shally,

> -----Original Message-----
> From: Akhil Goyal [mailto:akhil.go...@nxp.com]
> Sent: Thursday, June 20, 2019 3:17 PM
> To: Kusztal, ArkadiuszX <arkadiuszx.kusz...@intel.com>; dev@dpdk.org
> Cc: Trahe, Fiona <fiona.tr...@intel.com>; shally.ve...@caviumnetworks.com
> Subject: RE: [PATCH] cryptodev: extend api of asymmetric crypto by sessionless
> >
> > Asymmetric cryptography algorithms may more likely use
> > sessionless API so there is need to extend API.
> >
> > Signed-off-by: Arek Kusztal <arkadiuszx.kusz...@intel.com>
> > ---
> Acked-by: Akhil Goyal <akhil.go...@nxp.com>

[Fiona] The code is ok but I think a little more is needed.
As all PMDs don't support sessionless, this needs to be handled as an optional 
capability.
And in future some PMDs may only support SESSIONLESS and some only support 
WITH_SESSION.
So I propose adding 2 feature flags to the API
RTE_CRYPTODEV_FF_ASYM_WTH_SESSION
RTE_CRYPTODEV_FF_ASYM_SESSIONLESS
and including in this patch the PMD and UT changes to set and test the first 
flag.
We'll follow up with SESSIONLESS QAT implementation and UTs in a separate 
patchset.

Also documentation updates should go with this API patch, i.e.
 - update section 16.7.2 in the cryptodev programmers guide - and review that 
doc in case other sections need updating.
 - fix comment in rte_crypto.h under STATUS_INVALID_SESSION
 - release note



Reply via email to