[dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation

Mcnamara, John john.mcnamara at intel.com
Thu Aug 3 12:39:36 CEST 2017



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Pablo de Lara
> Sent: Thursday, August 3, 2017 2:03 AM
> To: thomas at monjalon.net; jerin.jacob at caviumnetworks.com;
> akhil.goyal at nxp.com; hemant.agrawal at nxp.com; Trahe, Fiona
> <fiona.trahe at intel.com>; Jain, Deepak K <deepak.k.jain at intel.com>;
> Griffin, John <john.griffin at intel.com>; Doherty, Declan
> <declan.doherty at intel.com>
> Cc: dev at dpdk.org; De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
> Subject: [dpdk-dev] [PATCH] doc: announce API change in crypto driver
> allocation
> 
> rte_cryptodev_allocate_driver() function gets one parameter (rte_driver),
> as the cryptodev_driver structure is allocated inside the function with
> rte_malloc.
> 
> This function is called from a constructor function, when crypto PMDs are
> registered.
> If malloc fails, there is no way to recover from it, so it is better to
> allocate this structure statically, in each PMD.
> 
> Therefore, it is required to add an extra parameter in this function, to
> also get a pointer to this structure.
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>

Acked-by: John McNamara <john.mcnamara at intel.com>




More information about the dev mailing list