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

Thomas Monjalon thomas at monjalon.net
Tue Aug 8 12:21:24 CEST 2017


03/08/2017 12:43, Akhil Goyal:
> On 8/3/2017 6:32 AM, Pablo de Lara wrote:
> > 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: Akhil Goyal <akhil.goyal at nxp.com>

Applied, thanks



More information about the dev mailing list