From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 066B41B2AC for ; Mon, 6 Nov 2017 12:59:04 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Nov 2017 03:59:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,352,1505804400"; d="scan'208";a="172008543" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga005.fm.intel.com with ESMTP; 06 Nov 2017 03:59:01 -0800 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.22]) by IRSMSX106.ger.corp.intel.com ([169.254.8.36]) with mapi id 14.03.0319.002; Mon, 6 Nov 2017 11:59:00 +0000 From: "Zhang, Roy Fan" To: "De Lara Guarch, Pablo" , "Doherty, Declan" CC: "dev@dpdk.org" , "De Lara Guarch, Pablo" Thread-Topic: [dpdk-dev] [PATCH] app/crypto-perf: fix crypto op init Thread-Index: AQHTVuLWwDgHWfZVwk+LovR8D5z6QaMHP1Rw Date: Mon, 6 Nov 2017 11:59:01 +0000 Message-ID: <9F7182E3F746AB4EA17801C148F3C6043304F07D@IRSMSX101.ger.corp.intel.com> References: <20171106093604.1463-1-pablo.de.lara.guarch@intel.com> In-Reply-To: <20171106093604.1463-1-pablo.de.lara.guarch@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTM0MzVjZGYtYzIyYy00YWNmLWJhMzYtZGQ3NDMxNTY4M2U2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkNFbVptWjlJZFhwQjhNbHM2bmNkZDc0SlpVNGRSNGNyMzZVenN5YWFOMVk9In0= dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/crypto-perf: fix crypto op init 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: Mon, 06 Nov 2017 11:59:05 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pablo de Lara > Sent: Monday, November 6, 2017 9:36 AM > To: Doherty, Declan > Cc: dev@dpdk.org; De Lara Guarch, Pablo > Subject: [dpdk-dev] [PATCH] app/crypto-perf: fix crypto op init >=20 > The mempool and the physical address of the crypto operation at mempool > initialization were not being set, leading to incorrect physical addresse= s. >=20 > Fixes: bf9d6702eca9 ("app/crypto-perf: use single mempool") >=20 > Signed-off-by: Pablo de Lara > --- > app/test-crypto-perf/cperf_test_common.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto- > perf/cperf_test_common.c > index 46e4a46..7180bb9 100644 > --- a/app/test-crypto-perf/cperf_test_common.c > +++ b/app/test-crypto-perf/cperf_test_common.c > @@ -119,6 +119,8 @@ mempool_obj_init(struct rte_mempool *mp, > op->type =3D RTE_CRYPTO_OP_TYPE_SYMMETRIC; > op->status =3D RTE_CRYPTO_OP_STATUS_NOT_PROCESSED; > op->sess_type =3D RTE_CRYPTO_OP_WITH_SESSION; > + op->phys_addr =3D rte_mem_virt2phy(obj); > + op->mempool =3D mp; >=20 > /* Set source buffer */ > op->sym->m_src =3D m; > -- > 2.9.4 Acked-by: Fan Zhang