From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 39EF6A0A03 for ; Mon, 18 Jan 2021 13:10:58 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 099A4140E74; Mon, 18 Jan 2021 13:10:58 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id DEA5D140E74; Mon, 18 Jan 2021 13:10:56 +0100 (CET) IronPort-SDR: +Ymt49IY5nZwmUoj+Lr3Jkkxsv9NRfK9//qHbfK2EHGBNUPC7qHNvl1EKXb0k6nkbcwkIVt8xK xRblDLoQRdDg== X-IronPort-AV: E=McAfee;i="6000,8403,9867"; a="178945073" X-IronPort-AV: E=Sophos;i="5.79,356,1602572400"; d="scan'208";a="178945073" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2021 04:10:49 -0800 IronPort-SDR: BxwkvwXymGseGVUHsfBXG51KVmuY7gd0R+RDeSju/9948C1QXnene3KKT8r/1rMt6yGcukRdxE Er9xqdqW4srg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,356,1602572400"; d="scan'208";a="569170904" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga005.jf.intel.com with ESMTP; 18 Jan 2021 04:10:49 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 18 Jan 2021 04:10:48 -0800 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 18 Jan 2021 04:10:48 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Mon, 18 Jan 2021 04:10:48 -0800 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.108) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Mon, 18 Jan 2021 04:10:48 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E/yZM0Uq4xQt5JT1PbjYsuZ1Du0N5v8DxT9apcLsKRRryItWIbGsB2/esjWKZwB789vpTKayMZ8M9p4DJvw24xlVn5IaSm4so46FaFF7SpDzctio4WIv4rYdd7b8AI8Ed9px9BNKP3jjr6xffCON1g+iYyujZSPlKrrifIE+bD5DL4LoHjC4/m3lWmRups2hoKppgSndVCzeLyWJLxJ2eaSTQmqvhJy6548ZSNVsGLouPeEsAtmWAmpXsBYuow6uw2Kr+cqoYTu70E3ClypkobrktUpJ1LRRxzljbrI7bdJMD4QyRKennGl7n1kqfscsWjECOX9vAJfwI7XCzLWrSQ== 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=BDAYJUsPPUIWNLza0+8P6A0XJaJrAh1iWJovI9Z3RZ0=; b=jIT3flgIXdtVrNnm4m5mORqaX11oEkB/FC+rUXiLVg/qafZEpmXwWLDZYJwO5eHdWGhhgCCWt99BPc8TxgWZK+aotvSSZr1JgcI1ollVG59sZ/hRNzgPDlkLwvMfPF2AbOCi808C5Q9gZ8PN90+/4MTkQqVWzXbpOIFqFreFyKlxAbvtsB43rxpV+GEi4n3ZdD1sjQzpQa2E7EFihZdFmZSSdwFOIVrkTqT1RXkw61ascYXklgfFaZQIa7wkZ6Mzx3BvBX5twGVNHE6Xb7ENqxlt/3JzSB9AifwDK+r75e0i/nKzlcpGbmuU3W4w0eTFBtO6IthjrASPdJGlgh0Tqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BDAYJUsPPUIWNLza0+8P6A0XJaJrAh1iWJovI9Z3RZ0=; b=ulBze26QRN72RySPqWUjlp4jnBjzpyr1eqHddlIyy09QOZZrI0zgJKpIhzktIPOyPYc697zKem0o1TwpDri6g4TOcpPdmth5CA+HHPh/Szdm6NfBhFlICfe+bf6MQurGTqxDes0pISAXD9gqNm/NBDRSyEZECxHn0e+RGcXH1v4= Received: from MWHPR11MB1838.namprd11.prod.outlook.com (2603:10b6:300:10c::11) by MW3PR11MB4634.namprd11.prod.outlook.com (2603:10b6:303:54::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.11; Mon, 18 Jan 2021 12:10:47 +0000 Received: from MWHPR11MB1838.namprd11.prod.outlook.com ([fe80::d848:ec4d:f71:363f]) by MWHPR11MB1838.namprd11.prod.outlook.com ([fe80::d848:ec4d:f71:363f%9]) with mapi id 15.20.3763.014; Mon, 18 Jan 2021 12:10:47 +0000 From: "Gujjar, Abhinandan S" To: Ankur Dwivedi , "dev@dpdk.org" CC: "stable@dpdk.org" , "akhil.goyal@nxp.com" , Anoob Joseph Thread-Topic: [PATCH] test/event_crypto_adapter: set cipher operation in transform Thread-Index: AQHW5ZoUp7XZwk6sDkGwUJHpJ/05QqotJ+zAgAAoe4CAAAkyEA== Date: Mon, 18 Jan 2021 12:10:47 +0000 Message-ID: References: <20210108084051.25429-1-adwivedi@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [103.5.135.70] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0097600b-cc13-4960-eab9-08d8bbaa16b7 x-ms-traffictypediagnostic: MW3PR11MB4634: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Rr7taSqRN7+Qx2C9hDjxI3ZvZE7jXDTpVuNcGXXpB+McWeqpBdJ7sbVco2BrsSW6G12aBSHMUF2TqJZBjbSO7pfBcHCS3xRRInRCWBuGDSIyrqpE2Rb1GcwsmJEWuR3neXf0jvG/ZGMcNgOAPw7RE2bQbJsydwsWB2SQxcS26INxLnaUwDFuFJiLWvTSptqiEMCroMhEcnLL5At+ATNyO/qinD0/a7he7a6jOliyrOXnyAfe9CKnUTm1xy8YBA7PR2U5ChM1dab7x4Hd+XVIHRuG7yTq9ABR9hpwF4hWQWq2q8qVBxBxWoAADBFJEWA7mcgQXUr9XQ15E7kAZd3L/oSa3rqcwML/hoUKGzX4XgQquKLVC9ONnGospjU55j1o8Oa8dBXCgXJxsBVF7qmgIw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR11MB1838.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(376002)(346002)(39860400002)(396003)(136003)(2906002)(7696005)(55016002)(9686003)(64756008)(8936002)(86362001)(33656002)(83380400001)(110136005)(4326008)(71200400001)(8676002)(76116006)(54906003)(316002)(55236004)(52536014)(26005)(66476007)(53546011)(186003)(66556008)(66946007)(66446008)(5660300002)(478600001)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?wMzCW18cPOlj0e7dt/Jpi7tVpfghPgVssk15+mOaQJUDGNLcDAaXUmwu5c5O?= =?us-ascii?Q?+1mfLU973P0Dq+eDaJRX0UKpBC7bSAbgGKtlcQ+0JWeNZP4asdcA6BNtbKD0?= =?us-ascii?Q?3miw03vyXwd3zXtdXW4DbHSzffS7YjgcP41LTqvFjDWBaedHyVRMFWhYOmoL?= =?us-ascii?Q?/msvjkh1YZQBlemZM8+lfCvhrTMqlEM7H2sdVlwrRf53JoYIxg0eRvk/SvhJ?= =?us-ascii?Q?OJCMMgHQTyoQNEdBi5tmf/kTIgZyXSRHf42DfVDQ5hy1NNY/2GogOSKUrnEZ?= =?us-ascii?Q?MVgTrXjCnsEQ7xv9D1gB+LwhKubnT5sXdcNVzMLmjW/vl11aTFI/687jJuWZ?= =?us-ascii?Q?piiiwfJw10ehYsJwb508tmbARrev5xSLmPad6PtBdPWrd0M0Bf/rcY/x/Tgn?= =?us-ascii?Q?wSLDXUpwUEiZ+3hA8DO4Ynqzlkr+z0rYrN/mkBd3viYSAK4zNvZWJnJqmq5x?= =?us-ascii?Q?Zlt0ckB0EB6Cy/jS92QP/m1iit9RFbmFs0i4hfriOr77OEVa+fSAdAh3sGZv?= =?us-ascii?Q?z7bOmKXjZZDNBfzJxW5604zFB73ucuLGi8hyeFfaO9xCCP9o113RritTD2GH?= =?us-ascii?Q?gpEBezcqJCzFDMb3g+WBuf8xFJ/dLjZpYJsGxeBWIAI63POJsOKITP+Cti8P?= =?us-ascii?Q?lN2aqMsT4gcR9I/SqT/8dKJiBTwVF1birggl6B2G0+WotK7QRmfl+FMRm1R4?= =?us-ascii?Q?y4RXXDTU+0bbuRyuDwr9tK8Ur/LfOJlIRI9t2/qjYgDI9fW93Klm+rwMUKVA?= =?us-ascii?Q?QM3exBdDvGi1V5GQA/yfXFw4Rb2LUikAdWp51gUP5TRUj9nWw3KO8vpV5rcx?= =?us-ascii?Q?1JhecBYhQ4s6XVW0dNo0i4hRteay3b6jJSCODsjU6vD+WCr5LXnHro5zIja3?= =?us-ascii?Q?SKpjIkpx/xCNWWdv7gXj9+lrOkrQ5Di3t6xKtJsioLmSk7kKynnDXloyz5il?= =?us-ascii?Q?HejwGAqvU/I/ov0+Yqe6kAsfNtL0fChb7tjr9ujeyr8SqU//ucQ5zNwDOlik?= =?us-ascii?Q?X0tp8CtIx/ljYxUPZSyTeBf5Hohdls215BGctcBuu9FmpxkG1Fu4mMssnm1f?= =?us-ascii?Q?1kBxK8Hp?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1838.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0097600b-cc13-4960-eab9-08d8bbaa16b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2021 12:10:47.1472 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QFYK2vlnzN+PQH4dP+Fchs88YHCyaLDsKqdx0pdU1KL1fwJHVfEvVQbg2nDf0aUcFH8teoKccuabrFPut+NU0OWRmB/d6wbcRBNbz89sjNY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4634 X-OriginatorOrg: intel.com Subject: Re: [dpdk-stable] [PATCH] test/event_crypto_adapter: set cipher operation in transform X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi Ankur, > -----Original Message----- > From: Ankur Dwivedi > Sent: Monday, January 18, 2021 5:04 PM > To: Gujjar, Abhinandan S ; dev@dpdk.org > Cc: stable@dpdk.org; akhil.goyal@nxp.com; Anoob Joseph > > Subject: RE: [PATCH] test/event_crypto_adapter: set cipher operation in > transform >=20 > Hi Abhinandan, >=20 > >-----Original Message----- > >From: Gujjar, Abhinandan S > >Sent: Monday, January 18, 2021 2:42 PM > >To: Ankur Dwivedi ; dev@dpdk.org > >Cc: stable@dpdk.org; akhil.goyal@nxp.com; Anoob Joseph > > > >Subject: [EXT] RE: [PATCH] test/event_crypto_adapter: set cipher > >operation in transform > > > >External Email > > > >---------------------------------------------------------------------- > >Hi Ankur, > > > >> -----Original Message----- > >> From: Ankur Dwivedi > >> Sent: Friday, January 8, 2021 2:11 PM > >> To: dev@dpdk.org > >> Cc: stable@dpdk.org; Gujjar, Abhinandan S > >> ; akhil.goyal@nxp.com; > >> anoobj@marvell.com; Ankur Dwivedi > >> Subject: [PATCH] test/event_crypto_adapter: set cipher operation in > >> transform > >> > >> The cipher operation in the transform should be set to encrypt. > >> > >> Fixes: 74449375237f ("test/event_crypto_adapter: fix configuration") > >> > >> Signed-off-by: Ankur Dwivedi > >> --- > >> app/test/test_event_crypto_adapter.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/app/test/test_event_crypto_adapter.c > >> b/app/test/test_event_crypto_adapter.c > >> index a0169aa6cf..335211cd8c 100644 > >> --- a/app/test/test_event_crypto_adapter.c > >> +++ b/app/test/test_event_crypto_adapter.c > >> @@ -183,6 +183,7 @@ test_op_forward_mode(uint8_t session_less) > >> cipher_xform.type =3D RTE_CRYPTO_SYM_XFORM_CIPHER; > >> cipher_xform.next =3D NULL; > >> cipher_xform.cipher.algo =3D RTE_CRYPTO_CIPHER_NULL; > >> + cipher_xform.cipher.op =3D RTE_CRYPTO_CIPHER_OP_ENCRYPT; > >NULL PMD does not refer " RTE_CRYPTO_CIPHER_OP_ENCRYPT ". Is your test > >code failing without this change? > [Ankur] Yes the test is failing, because in octeontx2 crypto pmd, during = crypto > session configure there is a check for the cipher xform op. If the op doe= s not > match either encrypt or decrypt, the session configure fails. [Abhinandan] Ok. I have not come across such issue on my system. Could you please add more details into the commit message of the patch and = send? > >> > >> op =3D rte_crypto_op_alloc(params.op_mpool, > >> RTE_CRYPTO_OP_TYPE_SYMMETRIC); > >> @@ -382,6 +383,7 @@ test_op_new_mode(uint8_t session_less) > >> cipher_xform.type =3D RTE_CRYPTO_SYM_XFORM_CIPHER; > >> cipher_xform.next =3D NULL; > >> cipher_xform.cipher.algo =3D RTE_CRYPTO_CIPHER_NULL; > >> + cipher_xform.cipher.op =3D RTE_CRYPTO_CIPHER_OP_ENCRYPT; > >> > >> op =3D rte_crypto_op_alloc(params.op_mpool, > >> RTE_CRYPTO_OP_TYPE_SYMMETRIC); > >> -- > >> 2.28.0