[PATCH v3 1/7] cryptodev: add APIs to get/set event metadata

Zhang, Roy Fan roy.fan.zhang at intel.com
Wed Apr 27 17:38:17 CEST 2022


> -----Original Message-----
> From: Akhil Goyal <gakhil at marvell.com>
> Sent: Thursday, April 21, 2022 3:37 PM
> To: dev at dpdk.org
> Cc: anoobj at marvell.com; jerinj at marvell.com; Gujjar, Abhinandan S
> <abhinandan.gujjar at intel.com>; Jayatheerthan, Jay
> <jay.jayatheerthan at intel.com>; Vangati, Narender
> <narender.vangati at intel.com>; vfialko at marvell.com; Akhil Goyal
> <gakhil at marvell.com>
> Subject: [PATCH v3 1/7] cryptodev: add APIs to get/set event metadata
> 
> From: Volodymyr Fialko <vfialko at marvell.com>
> 
> Currently, crypto session userdata is used to set event crypto
> metadata from the application and the driver is dereferencing it
> in driver which is not correct. User data is meant to be opaque
> to the driver.
> To support this, new API is added to get and set event crypto
> metadata. The new API, rte_cryptodev_set_session_event_mdata,
> allows setting event metadata in session private data which is
> filled inside PMD using a new cryptodev op. This operation
> can be performed on any of the PMD supported sessions
> (sym/asym/security).
> For SW abstraction of event crypto adapter to be used by
> eventdev library, a new field is added in asymmetric crypto
> session for now and for symmetric case, current implementation
> of using userdata is used. Symmetric cases cannot be fixed now,
> as it will be ABI breakage which will be resolved in DPDK 22.11.
> 
> Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>
> Signed-off-by: Akhil Goyal <gakhil at marvell.com>
> ---
Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the dev mailing list