From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 648202C5E for ; Thu, 3 Aug 2017 12:39:40 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 03 Aug 2017 03:39:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="885930172" Received: from irsmsx108.ger.corp.intel.com ([163.33.3.3]) by FMSMGA003.fm.intel.com with ESMTP; 03 Aug 2017 03:39:38 -0700 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX108.ger.corp.intel.com (163.33.3.3) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 3 Aug 2017 11:39:37 +0100 Received: from irsmsx103.ger.corp.intel.com ([169.254.3.9]) by IRSMSX156.ger.corp.intel.com ([10.108.20.68]) with mapi id 14.03.0319.002; Thu, 3 Aug 2017 11:39:37 +0100 From: "Mcnamara, John" To: "De Lara Guarch, Pablo" , "thomas@monjalon.net" , "jerin.jacob@caviumnetworks.com" , "akhil.goyal@nxp.com" , "hemant.agrawal@nxp.com" , "Trahe, Fiona" , "Jain, Deepak K" , "Griffin, John" , "Doherty, Declan" CC: "dev@dpdk.org" , "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation Thread-Index: AQHTDDdKnQt1kD6LsEquh6N+4zEOPKJycP1g Date: Thu, 3 Aug 2017 10:39:36 +0000 Message-ID: References: <20170803010236.17503-1-pablo.de.lara.guarch@intel.com> In-Reply-To: <20170803010236.17503-1-pablo.de.lara.guarch@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTZjMDgyNDUtNWUxOC00NjFkLWFkNmItYTgwZWMxNWRhYmNiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjZXK21NZForRXRSRlErN3Ixb2hMUXdWalRoTW5xeDUrTHVHZHdIS3pvSzg9In0= dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] doc: announce API change in crypto driver allocation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2017 10:39:40 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Thursday, August 3, 2017 2:03 AM > To: thomas@monjalon.net; jerin.jacob@caviumnetworks.com; > akhil.goyal@nxp.com; hemant.agrawal@nxp.com; Trahe, Fiona > ; Jain, Deepak K ; > Griffin, John ; Doherty, Declan > > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [dpdk-dev] [PATCH] doc: announce API change in crypto driver > allocation >=20 > rte_cryptodev_allocate_driver() function gets one parameter (rte_driver), > as the cryptodev_driver structure is allocated inside the function with > rte_malloc. >=20 > 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. >=20 > Therefore, it is required to add an extra parameter in this function, to > also get a pointer to this structure. >=20 > Signed-off-by: Pablo de Lara Acked-by: John McNamara