From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EBC47324C for ; Thu, 3 Aug 2017 16:14:27 +0200 (CEST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2017 07:14:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,316,1498546800"; d="scan'208";a="135020265" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga005.fm.intel.com with ESMTP; 03 Aug 2017 07:14:25 -0700 Received: from irsmsx107.ger.corp.intel.com ([169.254.10.129]) by irsmsx105.ger.corp.intel.com ([169.254.7.168]) with mapi id 14.03.0319.002; Thu, 3 Aug 2017 15:14:24 +0100 From: "Jain, Deepak K" To: "De Lara Guarch, Pablo" , "thomas@monjalon.net" , "jerin.jacob@caviumnetworks.com" , "akhil.goyal@nxp.com" , "hemant.agrawal@nxp.com" , "Trahe, Fiona" , "Griffin, John" , "Doherty, Declan" CC: "dev@dpdk.org" Thread-Topic: [PATCH] doc: announce API change in crypto driver allocation Thread-Index: AQHTDDdHWklbOQJC50m15Dlugy0oJaJyrMAw Date: Thu, 3 Aug 2017 14:14:23 +0000 Deferred-Delivery: Thu, 3 Aug 2017 14:14:12 +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-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWY2ZjE5MWUtNWIxYi00MWEwLWEwY2ItOWY2NjBhYjYzNmU4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6InpMbVZNMEdLK0dOZ05wWno5dzRGWko5ZFhIdnlDblwvYjFTVFo3REdUWkNjPSJ9 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 14:14:28 -0000 > -----Original Message----- > From: De Lara Guarch, Pablo > 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: [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 a= llocate 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 > - ``rte_cryptodev_create_vdev`` > + > +* cryptodev: the following function will have an extra parameter, > +passing a > + statically allocated crypto driver structure, instead of calling > +malloc, > + in 17.11: > + > + - ``rte_cryptodev_allocate_driver`` > -- > 2.9.4 Acked-by: Deepak Kumar Jain