[dpdk-dev] [PATCH v3] cryptodev: add capabilities discovery mechanism

Trahe, Fiona fiona.trahe at intel.com
Thu Mar 10 22:27:58 CET 2016



> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Thursday, March 10, 2016 7:55 PM
> To: dev at dpdk.org
> Cc: Doherty, Declan; Trahe, Fiona; De Lara Guarch, Pablo
> Subject: [PATCH v3] cryptodev: add capabilities discovery mechanism
> 
> From: Declan Doherty <declan.doherty at intel.com>
> 
> This patch add a mechanism for discovery of crypto device features and
> supported crypto operations and algorithms. It also provides a method for a
> crypto PMD to publish any data range limitations it may have for the operations
> and algorithms it supports.
> 
> The parameter feature_flags added to rte_cryptodev struct is used to capture
> features such as operations supported (symmetric crypto, operation chaining
> etc) as well parameter such as whether the device is hardware accelerated or
> uses SIMD instructions.
> 
> The capabilities parameter allows a PMD to define an array of supported
> operations with any limitation which that implementation may have.
> 
> Finally the rte_cryptodev_info struct has been extended to allow retrieval of
> these parameter using the existing rte_cryptodev_info_get() API.
> 
> Signed-off-by: Declan Doherty <declan.doherty at intel.com>
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
> ---
> 
> This patch depends on "null_crypto_pmd: PMD to support null crypto
> operations" patch
> (http://dpdk.org/dev/patchwork/patch/11428/)
> and "snow3g: Bit-wise handling for Wireless Algorithm" patch
> (http://dpdk.org/dev/patchwork/patch/11429/)
> 
> Changes in v3:
> 
> - Renamed macro to specify symmetric algo chaining
> 
> Changes in v2:
> 
> - Fixed incorrect values for sizes
> - Renamed some fields in capabilities structure
> - Added capabilities for new PMDs
> 
Acked-by: Fiona Trahe <fiona.trahe at intel.com>


More information about the dev mailing list