From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Trahe, Fiona" Subject: Re: [PATCH v2 2/6] lib/cryptodev: add asym op support in cryptodev Date: Tue, 8 May 2018 14:43:57 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B4358947CD2B@IRSMSX103.ger.corp.intel.com> References: <1522927489-23668-1-git-send-email-shally.verma@caviumnetworks.com> <1522927489-23668-3-git-send-email-shally.verma@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "Doherty, Declan" , "pathreya@caviumnetworks.com" , "ssahu@caviumnetworks.com" , "agupta@caviumnetworks.com" , "dev@dpdk.org" , Sunila Sahu , Ashish Gupta To: Shally Verma , "De Lara Guarch, Pablo" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 15BA2AABF for ; Tue, 8 May 2018 16:44:01 +0200 (CEST) In-Reply-To: <1522927489-23668-3-git-send-email-shally.verma@caviumnetworks.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" 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@caviumnetwo= rks.com; > dev@dpdk.org; Sunila Sahu ; Ashish Gupta > > Subject: [PATCH v2 2/6] lib/cryptodev: add asym op support in cryptodev >=20 > struct rte_cryptodev_sym_session * > rte_cryptodev_sym_session_create(struct rte_mempool *mp) > { > struct rte_cryptodev_sym_session *sess; >=20 > /* 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 ** Also this will need rebasing - the latest code has an extra byte.