From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A8F6EA2F67 for ; Fri, 4 Oct 2019 11:35:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 949511C1DF; Fri, 4 Oct 2019 11:35:45 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DCBD21C1D4 for ; Fri, 4 Oct 2019 11:35:43 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Oct 2019 02:35:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,255,1566889200"; d="scan'208";a="275989140" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by orsmga001.jf.intel.com with ESMTP; 04 Oct 2019 02:35:41 -0700 Received: from pgsmsx102.gar.corp.intel.com ([169.254.6.203]) by KMSMSX151.gar.corp.intel.com ([169.254.10.225]) with mapi id 14.03.0439.000; Fri, 4 Oct 2019 17:35:40 +0800 From: "Gujjar, Abhinandan S" To: Hemant Agrawal , "dev@dpdk.org" CC: "jerinj@marvell.com" Thread-Topic: [PATCH 1/6] test/event_crypto: fix missing IV value for AES algo Thread-Index: AQHVeExuHQhiDzeo50mtxPHFgTFsbqdKPKYw Date: Fri, 4 Oct 2019 09:35:40 +0000 Message-ID: <5612CB344B05EE4F95FC5B729939F7807954E11C@PGSMSX102.gar.corp.intel.com> References: <20191001113339.21767-1-hemant.agrawal@nxp.com> In-Reply-To: <20191001113339.21767-1-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2U4NTY4ZWUtZTdiZC00ODBlLTgzMjAtYTY1ODJiNjUzY2RmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoidEZwSUd5dDVIZWdZMFIxV0ZMN1Jlc2NGdUlzNG9ZcWNralZYWkpuVjFXZXRMRzd3RXBQUmJMZVlkSkpSRVwvMkcifQ== dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/6] test/event_crypto: fix missing IV value for AES algo 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Hemanth, I tried to test the series of patches on test with SW adapter. Looks like, test hangs after 3rd case! Not sure, if I am missing any params to be passed to the app or anything el= se has to be done. + ------------------------------------------------------- + + TestCase [ 0] : test_crypto_adapter_create succeeded + TestCase [ 1] : test_crypto_adapter_qp_add_del succeeded +------------------------------------------------------+ + Crypto adapter stats for instance 0: + Event port poll count 0 + Event dequeue count 0 + Cryptodev enqueue count 0 + Cryptodev enqueue failed count 0 + Cryptodev dequeue count 0 + Event enqueue count 0 + Event enqueue retry count 0 + Event enqueue fail count 0 +------------------------------------------------------+ + TestCase [ 2] : test_crypto_adapter_stats succeeded > -----Original Message----- > From: Hemant Agrawal > Sent: Tuesday, October 1, 2019 5:04 PM > To: dev@dpdk.org > Cc: jerinj@marvell.com; Gujjar, Abhinandan S > Subject: [PATCH 1/6] test/event_crypto: fix missing IV value for AES algo >=20 > The IV was not set, which was causing HW based SEC on DPAA1 to fail. >=20 > Fixes: ce02103ad072 ("test/event_crypto: change the SEC cipher algo") >=20 > Signed-off-by: Hemant Agrawal > --- > Please squash if possible. >=20 > app/test/test_event_crypto_adapter.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > diff --git a/app/test/test_event_crypto_adapter.c > b/app/test/test_event_crypto_adapter.c > index 652e458f0..bf83a6357 100644 > --- a/app/test/test_event_crypto_adapter.c > +++ b/app/test/test_event_crypto_adapter.c > @@ -171,6 +171,7 @@ test_op_forward_mode(uint8_t session_less) > struct rte_event ev; > uint32_t cap; > int ret; > + uint8_t cipher_key[17]; >=20 > memset(&m_data, 0, sizeof(m_data)); >=20 > @@ -186,6 +187,11 @@ test_op_forward_mode(uint8_t session_less) > cipher_xform.cipher.algo =3D RTE_CRYPTO_CIPHER_AES_CBC; > cipher_xform.cipher.op =3D RTE_CRYPTO_CIPHER_OP_ENCRYPT; >=20 > + cipher_xform.cipher.key.data =3D cipher_key; > + cipher_xform.cipher.key.length =3D 16; > + cipher_xform.cipher.iv.offset =3D IV_OFFSET; > + cipher_xform.cipher.iv.length =3D 16; > + > op =3D rte_crypto_op_alloc(params.op_mpool, > RTE_CRYPTO_OP_TYPE_SYMMETRIC); > TEST_ASSERT_NOT_NULL(op, > @@ -364,6 +370,7 @@ test_op_new_mode(uint8_t session_less) > struct rte_mbuf *m; > uint32_t cap; > int ret; > + uint8_t cipher_key[17]; >=20 > memset(&m_data, 0, sizeof(m_data)); >=20 > @@ -379,6 +386,11 @@ test_op_new_mode(uint8_t session_less) > cipher_xform.cipher.algo =3D RTE_CRYPTO_CIPHER_AES_CBC; > cipher_xform.cipher.op =3D RTE_CRYPTO_CIPHER_OP_ENCRYPT; >=20 > + cipher_xform.cipher.key.data =3D cipher_key; > + cipher_xform.cipher.key.length =3D 16; > + cipher_xform.cipher.iv.offset =3D IV_OFFSET; > + cipher_xform.cipher.iv.length =3D 16; > + > op =3D rte_crypto_op_alloc(params.op_mpool, > RTE_CRYPTO_OP_TYPE_SYMMETRIC); > TEST_ASSERT_NOT_NULL(op, "Failed to allocate crypto_op!\n"); > -- > 2.17.1