From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Verma, Shally" Subject: Re: [PATCH v2 2/6] lib/cryptodev: add asym op support in cryptodev Date: Wed, 9 May 2018 07:33:32 +0000 Message-ID: References: <1522927489-23668-1-git-send-email-shally.verma@caviumnetworks.com> <1522927489-23668-3-git-send-email-shally.verma@caviumnetworks.com> <348A99DA5F5B7549AA880327E580B4358947CD2B@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Doherty, Declan" , "Athreya, Narayana Prasad" , "Sahu, Sunila" , "Gupta, Ashish" , "dev@dpdk.org" , "Sahu, Sunila" , "Gupta, Ashish" To: "Trahe, Fiona" , "De Lara Guarch, Pablo" Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0054.outbound.protection.outlook.com [104.47.36.54]) by dpdk.org (Postfix) with ESMTP id 3179F235 for ; Wed, 9 May 2018 09:33:42 +0200 (CEST) In-Reply-To: <348A99DA5F5B7549AA880327E580B4358947CD2B@IRSMSX103.ger.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >-----Original Message----- >From: Trahe, Fiona [mailto:fiona.trahe@intel.com] >Sent: 08 May 2018 20:14 >To: Verma, Shally ; De Lara Guarch, Pablo >Cc: Doherty, Declan ; Athreya, Narayana Prasad <= NarayanaPrasad.Athreya@cavium.com>; Sahu, Sunila >; Gupta, Ashish ; dev@dpd= k.org; Sahu, Sunila ; >Gupta, Ashish >Subject: RE: [PATCH v2 2/6] lib/cryptodev: add asym op support in cryptode= v > >Hi Shally, > > >> -----Original Message----- >> From: Shally Verma [mailto:shally.verma@caviumnetworks.com] >> Sent: Thursday, April 5, 2018 12:25 PM >> To: De Lara Guarch, Pablo >> Cc: Doherty, Declan ; Trahe, Fiona ; >> pathreya@caviumnetworks.com; ssahu@caviumnetworks.com; agupta@caviumnetw= orks.com; >> dev@dpdk.org; Sunila Sahu ; Ashish Gupta >> >> Subject: [PATCH v2 2/6] lib/cryptodev: add asym op support in cryptodev >> >> struct rte_cryptodev_sym_session * >> rte_cryptodev_sym_session_create(struct rte_mempool *mp) >> { >> struct rte_cryptodev_sym_session *sess; >> >> /* Allocate a session structure from the session pool */ >> - if (rte_mempool_get(mp, (void **)&sess)) { >> + if (rte_mempool_get(mp, (void *)&sess)) { >[Fiona] Are you introducing a bug here? >The fn expects a void ** [Shally] Ya. My bad. Missed it. >Also this will need rebasing - the latest code has an extra byte.