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 A19D0A2EFC for ; Tue, 15 Oct 2019 12:05:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B9F9A1EB44; Tue, 15 Oct 2019 12:05:18 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00072.outbound.protection.outlook.com [40.107.0.72]) by dpdk.org (Postfix) with ESMTP id 23A911EB35 for ; Tue, 15 Oct 2019 12:05:16 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ypfd9NHcGRnn0vwJWt3CeNZ8R7GT6rbTWs2Vo4gD56GF6CDDFYH9By76con5YIt4CiFQg/UZ5UvajFmtZnSdHpG/MBLi8RSUOoyC6NwxnKatBrp4eCPtWtKbVeToaQYQc+O3mZCJ/FGpasgIw8b5w86ZzOxU216hZkh+BDZN8Z5DZwOmCkJtCEZ56V2l9DhAV+xb6RRbnG2Jinz8zoCsW5O1j6DnxiQMBBuJ20q2wURRblNwGWRhMqA04LLfcysHNC67I5ZRjrxYZyfMZxeHv8TDI0t7SM2IDs503LSl3pMYWptHdO9hgBjO/G45nhwfFyr9QPlFrjkL9Eu6LE+0bw== 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=2+BTbbTGAbqtdaje5DTazJWgaWaWNfJ7RLISyG9la3Q=; b=OB4CniEhlkYZKra3HKqFxdPX4/dLDHjpdiloR/tIQHhLUi/ccWwF329OpMguUEb5CZ8ur46d+z0gMSg2Vawgj1uENhQMJCqx4SxDZ6tfWBF+kVgQ0kkOKLp9BDxMzd+Pvkkjf1qMiaAh1VdoCWDrp1UEsqsQ2tFbsCSnuTT0GkHJzTY953I8LKuoG2Y6vLrrVczs6tX79DZ+S0gqCMNCI12eYIBR/niKIk0m3brgx5DnoTm29FB4PPFjP6nmuEQjwOpin5poNfZyuC4X5IdupEA+W2sJrMh7DB9vCpDZ1FJlJ+Wq+qUl0+s0TCRhMx2KqVRpFPPvEsMvrfZ9JKZKnA== 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=2+BTbbTGAbqtdaje5DTazJWgaWaWNfJ7RLISyG9la3Q=; b=ofzcn5xAvv32ui+EFCgjV4Wqi2rvn3Dpx423MQ7vAb3JL2qdkY9Tn5FS/p6WoBT+5CrZ+C5ex1QJ2mSfuSDRYdspk5G5/3OuIESO6e99Pntg6b4BXmQT2AFYve/93DlHVaKZTFS/LS5s2TSixJRZASZOaMVzfkMGpqMaB0buHko= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6544.eurprd04.prod.outlook.com (20.179.234.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Tue, 15 Oct 2019 10:05:14 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee%5]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 10:05:14 +0000 From: Akhil Goyal To: Anoob Joseph , Arek Kusztal , "dev@dpdk.org" CC: "fiona.trahe@intel.com" , Shally Verma Thread-Topic: [EXT] [PATCH v5] cryptodev: extend api of asymmetric crypto by session-less Thread-Index: AQHVf1ql3+6hRs3GA0+7YCWUul+kfqdZgyqAgAH8wjA= Date: Tue, 15 Oct 2019 10:05:14 +0000 Message-ID: References: <20191010110239.10508-1-arkadiuszx.kusztal@intel.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ccf16dbe-2052-4c0a-1654-08d751572c9e x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1PR04MB6544: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(396003)(136003)(376002)(346002)(189003)(199004)(14454004)(99286004)(55016002)(316002)(33656002)(186003)(11346002)(7696005)(110136005)(25786009)(76176011)(486006)(446003)(3846002)(6116002)(476003)(6436002)(2501003)(81156014)(81166006)(8936002)(6246003)(305945005)(5660300002)(8676002)(4326008)(7736002)(71200400001)(71190400001)(66946007)(54906003)(66066001)(76116006)(74316002)(478600001)(26005)(66556008)(66446008)(66476007)(64756008)(2906002)(86362001)(6506007)(102836004)(52536014)(229853002)(9686003)(44832011)(14444005)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6544; H:VE1PR04MB6639.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: Rtolh3qrTZTVBiukfXa70rvEjbKfJBS7nPVGtEddGKf9Z7S5qUWnLLu7oqtPRWHTPRFJ8k4ogeQ15FNi0bWRvKj1kn6en71gYo5uWzCYb8ugBvGiYzuaQCnAkCv3uDYDMwhlohJmexmyfm/cX5u9xkTnUPX7WAAoAJGs3q2lAfYlYbtyDHpm1kLzP2KsVJUqKhRaj1znV17eY3ANgNKRYXXXhRnSCq0ClCY0wtDT9EPajrqeQn7tahjsu5KBOLvfOWj5h5ju951fUPgnXQYW/pHCl1T2O0KjNs/UCC+lO/ZqjB4ADDcOm1stRgZjLg5UR5SkpXBttYl2l8J/cWCQVJp16hRFb/ZChVHgS72QouR37vt9UZTmOBLL3sfd71gcJ2BXfzWJY5yP2DzMrPGQaIuPbnicgZvi4YDL0SMw/Qw= 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: ccf16dbe-2052-4c0a-1654-08d751572c9e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 10:05:14.7847 (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: zYa/k8iuCdsi0AP+qv9UZEZE5k5OKzufBNfiJ389uUBB8Tbab9MAT3dAFA3HLHkffi4G7hJRbHPwVk2taSHqrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6544 Subject: Re: [dpdk-dev] [EXT] [PATCH v5] cryptodev: extend api of asymmetric crypto by session-less 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" Updated Title to "cryptodev: update asymmetric crypto op for session-less" >=20 > Hi Arek, >=20 > Minor suggestion inline. Not a blocker issue. >=20 > Acked-by: Anoob Joseph >=20 > > This commit adds asymmetric session-less option to rte_crypto_asym_op. > > Feature flag for session-less is added to rte_cryptodev. > > > > Signed-off-by: Arek Kusztal > > --- > > v2: > > - added union > > v3: > > - added entry into feature matrix > > - added information to prog_guide > > v4: > > - fixed formatting > > - fixed grammar > > v5: > > - added release note > > > > doc/guides/cryptodevs/features/default.ini | 1 + > > doc/guides/prog_guide/cryptodev_lib.rst | 9 ++++++++- > > doc/guides/rel_notes/release_19_11.rst | 5 +++++ > > lib/librte_cryptodev/rte_crypto_asym.h | 9 +++++++-- > > lib/librte_cryptodev/rte_cryptodev.h | 2 ++ > > 5 files changed, 23 insertions(+), 3 deletions(-) > > > > diff --git a/doc/guides/cryptodevs/features/default.ini > > b/doc/guides/cryptodevs/features/default.ini > > index d3ee1af..b7f9a0a 100644 > > --- a/doc/guides/cryptodevs/features/default.ini > > +++ b/doc/guides/cryptodevs/features/default.ini > > @@ -26,6 +26,7 @@ OOP LB In LB Out =3D > > RSA PRIV OP KEY EXP =3D > > RSA PRIV OP KEY QT =3D > > Digest encrypted =3D > > +Asymmetric sessionless =3D > > > > ; > > ; Supported crypto algorithms of a default crypto driver. > > diff --git a/doc/guides/prog_guide/cryptodev_lib.rst > > b/doc/guides/prog_guide/cryptodev_lib.rst > > index 9719944..d420220 100644 > > --- a/doc/guides/prog_guide/cryptodev_lib.rst > > +++ b/doc/guides/prog_guide/cryptodev_lib.rst > > @@ -876,7 +876,14 @@ private asymmetric session data. Once this is done= , > > session should be freed usin > > > > Asymmetric Sessionless Support > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > -Currently asymmetric crypto framework does not support sessionless. > > +Asymmetric crypto framework supports session-less operations. > > + > > +Fields that should be set by user are: > > + > > +Member xform of struct rte_crypto_asym_op should point to the user > > created rte_crypto_asym_xform. > > +Note that this rte_crypto_asym_xform should be immutable for the > > lifetime of associated crypto_op. > > + > > +Member sess_type of rte_crypto_op should be set to > > RTE_CRYPTO_OP_SESSIONLESS. > > > > Transforms and Transform Chaining > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > diff --git a/doc/guides/rel_notes/release_19_11.rst > > b/doc/guides/rel_notes/release_19_11.rst > > index 02fc8fb..4ede7e8 100644 > > --- a/doc/guides/rel_notes/release_19_11.rst > > +++ b/doc/guides/rel_notes/release_19_11.rst > > @@ -85,6 +85,11 @@ New Features > > Added stateful decompression support in the Intel QuickAssist Techno= logy > > PMD. > > Please note that stateful compression is not supported. > > > > +* **Added cryptodev API to use asymmetric session-less operation.** > > + > > + Added session-less option to cryptodev asymmetric API. It works the > > + same way as symmetric crypto does namely xform is used directly by t= he > > crypto op. > > + >=20 > [Anoob] The above line could be confusing. I guess you will need a comma = after > "crypto does". >=20 > It works the same way as symmetric crypto does, namely xform is used dire= ctly > by the crypto op. >=20 > [Even "does" may not be required] Updated release notes as +* **Added cryptodev asymmetric session-less operation.** + + Added session-less option to cryptodev asymmetric structure. It works th= e same + way as symmetric crypto, corresponding xform is used directly by the cry= pto op. + Acked-by: Akhil Goyal Applied to dpdk-next-crypto Thanks