From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id DF8F42BE9 for ; Tue, 8 Aug 2017 12:21:40 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 7F96D20A2C; Tue, 8 Aug 2017 06:21:40 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Tue, 08 Aug 2017 06:21:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=lSlDfj/5D6MVVzb piBPpKjf1aa1bvQ48NkazYze55ww=; b=GAUTlCV1/AtA7uWjTBMFJVVjJI3xFLA yURLJifu6yBI46uH3DLV0v/Z2kdDOv05VJ9i8eBKpezHcMIfbGbnwjbEkZzPtm1A k92GOxghgFTcyrpXxpaEADo5BpswHLAmMhktRnSFNz7vkIzDC2xN4GGN7chllYux KSqSEN6EL3NM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=lSlDfj/5D6MVVzbpiBPpKjf1aa1bvQ48NkazYze55ww=; b=DvD25W3K 0Bau2dDGJa3rKVtKePPEHg970JvZI2UPMh+09BcPkOuxVLwIPOHqldg0rq/HjG0U JGBWy6wh0HzD0UfOsqhmZjSGJvX9a1orh6KFpnFSIxhqXsGUh3NUETPDPzwjHfOM hnD7ctGs78JuZJe5jqs7JxLwhTlrBB9zHah35P3HJiEIW0nFvRgKQ73p130IR0u2 pEr+s21GNooZgNdO+yBW8vLv5tEQD7+O3TT7uhyNGA1gnmCYMvJwVjp1+prQHtQe baZY+3+W/VJM9EN7yb/jCoKYNb7x94EDuVTaq4kvMIHg3Dgup8u25J7Nk48pi0kR DA4ZYADf3SaSeA== X-ME-Sender: X-Sasl-enc: 6Fhy3gxw4ruog6ALsAoueoPId2UvtMYzGQwLWC/PMlZT 1502187698 Received: from xps.localnet (188.17.136.77.rev.sfr.net [77.136.17.188]) by mail.messagingengine.com (Postfix) with ESMTPA id 9FB4B24640; Tue, 8 Aug 2017 06:21:38 -0400 (EDT) From: Thomas Monjalon To: Pablo de Lara Cc: dev@dpdk.org, Akhil Goyal , jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, fiona.trahe@intel.com, deepak.k.jain@intel.com, john.griffin@intel.com, declan.doherty@intel.com Date: Tue, 08 Aug 2017 12:21:24 +0200 Message-ID: <4111935.LCpq9MAlqe@xps> In-Reply-To: <0b8b13ec-9989-f10e-bfa2-7415446361a5@nxp.com> References: <20170803010236.17503-1-pablo.de.lara.guarch@intel.com> <0b8b13ec-9989-f10e-bfa2-7415446361a5@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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: Tue, 08 Aug 2017 10:21:41 -0000 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 > > > Acked-by: Akhil Goyal Applied, thanks