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 93057A318B for ; Fri, 18 Oct 2019 07:28:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 44ABB1C038; Fri, 18 Oct 2019 07:28:27 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130047.outbound.protection.outlook.com [40.107.13.47]) by dpdk.org (Postfix) with ESMTP id 72BC01C035 for ; Fri, 18 Oct 2019 07:28:26 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a8huwATxpouqayem2WWuzVmQ3ubI7sRtYaixnmTl8QS/XMA0jY77SmfmcbRmLF1vcxGF/gZwMIA0a3c07fZBP3rNiyXAYnFd43x+dS5y83SLiBzg2VBv7xUfgFVJOT9go4xf8qjpTuPToTKSGEW2VhiLLASleEtxJ9caeuenpE233wRN7NAKaLtIeMs3g78VYcnF8tFtQcuSS9k1o6OL9tiHkWc/4REPtyRNhVjE9S3xpnHQ6lUTI4ZSMBFuLeogPdXJRj5pa96+SB+6izy7lW3sHCBL7zRt67yPW48YgcpiX+QvsW9WCDTvauWgLfIHEG7C7GsvamqxT0RslRvpMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OdmEEiy1cYx44VAiONw+e6RZawBe48ZnCKgWHVduksM=; b=l7FzcaMlLRa3D7fKK/dCR3+8CYfji7t5VcMmmRRuyDBBAq9NPkqeTVuhuh0segwelp0giM5JdXh6LwYaT7FBr/MROqBcQP2jvmyiJA9ifsI8AMjqzAqdmHhy3TQH5naZRISzs60JDk+N1+kHfZ2O+PQnlr9qUCew7MPMz0zmxGo8rOMBj2FcCvaQHul09J/QlZH18X5LkvvQRLaZfuBnmajKPXQqy6VlEHxIr5+Xjjoo0ZmGaXftNrmDtdVOZ3Pyd/tqwvytZFZHO6QY+z4Vl7yqy03VoTLckwFdagMngXbylo5TjLSMbf3xSQrO2LcT44mnutiwro1q/VC8m9AyOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OdmEEiy1cYx44VAiONw+e6RZawBe48ZnCKgWHVduksM=; b=bVyg0hJICKtrBBSCyi3YrBRqeb1kOEhjDVRaGEPH7YMi2Bfs3sUP6HvhPrz9QqkEqXdJLLoaMUpt5eRTMwjEYclkEQ/U4UFWe7f9VQdtrG5cqxRjUGJq0iJcwMwU2ZBfHNNH1iLWJlK2cL7VKFY1lFHdFqlB91FQCV8fG5EoD+g= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.62.139) by VI1PR0401MB2333.eurprd04.prod.outlook.com (10.169.133.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Fri, 18 Oct 2019 05:28:25 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::b0c5:3e17:6ab7:5c26]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::b0c5:3e17:6ab7:5c26%10]) with mapi id 15.20.2347.024; Fri, 18 Oct 2019 05:28:25 +0000 From: Hemant Agrawal To: "Gujjar, Abhinandan S" , "dev@dpdk.org" CC: "jerinj@marvell.com" Thread-Topic: [PATCH 1/6] test/event_crypto: fix missing IV value for AES algo Thread-Index: AQHVepca48soBPSjzkKf4GOMWC9LYqdf9DtQ Date: Fri, 18 Oct 2019 05:28:25 +0000 Message-ID: References: <20191001113339.21767-1-hemant.agrawal@nxp.com> <5612CB344B05EE4F95FC5B729939F7807954E11C@PGSMSX102.gar.corp.intel.com> In-Reply-To: <5612CB344B05EE4F95FC5B729939F7807954E11C@PGSMSX102.gar.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-originating-ip: [92.120.1.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4e8963a9-805a-42f2-0f22-08d7538bffd8 x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VI1PR0401MB2333: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 01949FE337 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(39860400002)(396003)(136003)(366004)(346002)(189003)(199004)(13464003)(2906002)(316002)(33656002)(186003)(256004)(3846002)(9686003)(53546011)(6506007)(55016002)(26005)(6116002)(7696005)(6436002)(76176011)(25786009)(66066001)(6246003)(2501003)(229853002)(102836004)(14454004)(86362001)(478600001)(4326008)(99286004)(71190400001)(8936002)(76116006)(66946007)(64756008)(66556008)(66446008)(110136005)(66476007)(486006)(476003)(446003)(71200400001)(11346002)(74316002)(5660300002)(52536014)(44832011)(8676002)(305945005)(81166006)(81156014)(7736002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2333; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8tV/gj3fBpaH4IbOwDVmmWUjehEqn06XB/nEA2WWGgEFRHtCr6XIzo3iJry6ZmpTqNtt7PsL25ckPWlfpztgwH1ZvDe7OMVIPNsloD5DB49ajWv1eNlpc8KubVmzlQx3SroTIXoL2GLZj72sSrqEzjhtYMK2PgS4ncPrurf5ndU8VS7Ue1JScLscIGBcztt0/oYeMnpYpB+l7minPyG8Yy84JsE0ur1wYgC1t3Pyl+SD+t9Kyi3rKv438UjyQotUkdteMZnUWubrEGLYqtIFA+Hn8eiQDfLyBVT2/4BMYKpVeWZggdOeQvOGslIo9d4wiFh+FKGSObvLXYIV+pAs/V8B6Zvkvy+D15vrIQI1vOnb5EPZfYzzQ42pO87B8v2lsJOUIkU/hpzrWQmQZr9xflsPca3oRB02xaEZ9gzHrEI= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e8963a9-805a-42f2-0f22-08d7538bffd8 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2019 05:28:25.3024 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uqOwc/QwHRIJCX9g2UW9sYctf/3We/46VaT6f//YPgyTEWQzSX3BcscbTJ4n9agss1IKXJr7H4ZSDL/oVLpIUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2333 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 Abhinandan, =09 > -----Original Message----- > From: Gujjar, Abhinandan S > Sent: Friday, October 4, 2019 3:06 PM > To: Hemant Agrawal ; dev@dpdk.org > Cc: jerinj@marvell.com > Subject: RE: [PATCH 1/6] test/event_crypto: fix missing IV value for AES = algo > Importance: High >=20 > Hi Hemanth, >=20 > 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 = else > has to be done. [Hemant] OK, let me split this series into 2.=20 I will send the restructuring patch separately post rework. Most likely tha= t patch is causing hang on x86. >=20 > + ------------------------------------------------------- + > + 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 >=20 >=20 > > -----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 > > > > The IV was not set, which was causing HW based SEC on DPAA1 to fail. > > > > Fixes: ce02103ad072 ("test/event_crypto: change the SEC cipher algo") > > > > Signed-off-by: Hemant Agrawal > > --- > > Please squash if possible. > > > > app/test/test_event_crypto_adapter.c | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > 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]; > > > > memset(&m_data, 0, sizeof(m_data)); > > > > @@ -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; > > > > + 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]; > > > > memset(&m_data, 0, sizeof(m_data)); > > > > @@ -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; > > > > + 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