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

2017-08-08 Thread Thomas Monjalon
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 fu

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

2017-08-03 Thread Jain, Deepak K
> -Original Message- > From: De Lara Guarch, Pablo > Sent: Thursday, August 3, 2017 2:03 AM > To: tho...@monjalon.net; jerin.ja...@caviumnetworks.com; > akhil.go...@nxp.com; hemant.agra...@nxp.com; Trahe, Fiona > ; Jain, Deepak K ; > Griffin, John ; Doherty, Declan > > Cc: dev@dpdk.org; D

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

2017-08-03 Thread Mcnamara, John
; > Griffin, John ; Doherty, Declan > > Cc: dev@dpdk.org; De Lara Guarch, Pablo > 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 struc

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

2017-08-03 Thread 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

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

2017-08-03 Thread Pablo de Lara
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, s