> -----Original Message-----
> From: dev [mailto:[email protected]] On Behalf Of Pablo de Lara
> Sent: Thursday, August 3, 2017 2:03 AM
> To: [email protected]; [email protected];
> [email protected]; [email protected]; Trahe, Fiona
> <[email protected]>; Jain, Deepak K <[email protected]>;
> Griffin, John <[email protected]>; Doherty, Declan
> <[email protected]>
> Cc: [email protected]; De Lara Guarch, Pablo <[email protected]>
> 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 <[email protected]>

Acked-by: John McNamara <[email protected]>


Reply via email to