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 E5274A2F18 for ; Thu, 3 Oct 2019 16:28:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC1971C0AB; Thu, 3 Oct 2019 16:28:18 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70083.outbound.protection.outlook.com [40.107.7.83]) by dpdk.org (Postfix) with ESMTP id 1D99E1C066 for ; Thu, 3 Oct 2019 16:28:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IM+rAPVZqIjheDVHcPxsz11d/VuTRSqzG/kzroHKUhv0bNLNkr7CVdj3nxBw7DTjEeq6UDWjWM3CXgusx661+Gxi43qlzN6nF7R3yzNDfkEZLvLcRja+5UGYV+UMSGfd7AF7/ZQFnJRj9qdRbV9Bo4HwHCkXsjXYXAnGgknYqqgadbBKjg5brG3OZrj2O67efCuQmHVoBC3TmLzRbpmuI9lhXV3PjvWwbndLRLBb/jbL/NWa+D03T3ar5vUBCbhV4CdVGo5IaIeonA1SOwIvrjvEpEw+JtnKaACl2zRx+uCLMxei9BfdmsbcUDWGwxnNnNTKVe0Ipgb370Qt7kfSOA== 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=4O4NJAwyWthdtCVim+z7ceUnJT8ZJazKEXE91NR1Qjk=; b=lqfbJTQhi5JMcStu8NrkPWVdHoFm4807pR73yhJJ3JYFcQVvZEXfM2mLEZdfQNvvUm/ADVlhE97hn/qDrVvuG3PvuZMYvj58ULe52Y5GF11mKuGse89lJh8znARSuiC5DhF/nXDrwf2yeFg/jN8HXnOz1D4NsQ3asZw4Go0slBPzPnLzZBiU3BkzW1A3tKsaA/ELR+Lxq3SPSbghvpGh7C0LPBS0wkwylbjuFrHz77thZXDohzdVUwLayk6S0KQumAQ7oqeBENlusxUV3XnKX4ktP9ZWJjBlzoplq1BatLS682+w2cEJ2FPAFcccSpiaBMnzk1I+2ql6nQCHtCYHbA== 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=4O4NJAwyWthdtCVim+z7ceUnJT8ZJazKEXE91NR1Qjk=; b=F1jzYme2xv0R49Q+3KNxvoS72qVtffi5CSZ9eQq9ffHimzhyxDDd46+t+sqZEanS0jRKJB+D4QLQxfk3PdshvotvClAfaoU12I+h86VyZOSGEZsvMmRZm4v3g8gcnIssQN/akW7oO338IChvmNEUd09JQZlUyefCSu1Dgqt03G0= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6701.eurprd04.prod.outlook.com (20.179.234.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.17; Thu, 3 Oct 2019 14:28:16 +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.2305.023; Thu, 3 Oct 2019 14:28:16 +0000 From: Akhil Goyal To: Shally Verma , Arek Kusztal , "dev@dpdk.org" CC: "fiona.trahe@intel.com" , Anoob Joseph Thread-Topic: [EXT] [PATCH v2] cryptodev: extend api of asymmetric crypto by sessionless Thread-Index: AQHVZKpjAiy86e/A4kK5UyYoGnbTdqchUTwAgCfS2GA= Date: Thu, 3 Oct 2019 14:28:15 +0000 Message-ID: References: <20190906115735.12488-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: c91f06d4-b57e-41fb-9fea-08d7480dee0d x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1PR04MB6701: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 01792087B6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(346002)(366004)(39860400002)(376002)(199004)(189003)(13464003)(74316002)(2501003)(478600001)(7736002)(14454004)(33656002)(52536014)(66066001)(86362001)(2906002)(3846002)(6116002)(305945005)(71200400001)(71190400001)(5660300002)(476003)(7696005)(256004)(316002)(4326008)(66946007)(99286004)(54906003)(110136005)(66476007)(66446008)(66556008)(446003)(229853002)(76116006)(11346002)(8676002)(64756008)(53546011)(486006)(6506007)(186003)(8936002)(102836004)(25786009)(81166006)(81156014)(26005)(44832011)(6436002)(6246003)(9686003)(55016002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6701; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: FMtFYpbJAGpiWIeyYyuNRNmyPldAjsDq2I+YGi4tLhMDiFqq8vHh0q5QOHfR1bnDs5L/j+Tsf2efsGGpd73bH0sxb03fdNHsbqK/cSJ4///6nN7j2E8XNJfWqMLTpBjUha/FHmWM686C9Y0WU2BtdTO+W3HmcN0aqc55ou9QAq8LPJ5km+ENDT3Vr3hMIUW3c0Al5zmyo3mea6ia7ehcMAETWsYqawXou2LF1CKNCGBsI5EZn0xEKMKaLKUQvXQI1rlXcqxWRWscgM9c/2ANFdqLdKr0ey40RD7DvStX1TL75t61S5xKuZGYA5Ofv8JtipfGPdJXf9y7Qs2zhmsqUsIqhHdRk+p92JPtL4PJ2jE5bK3gNxFOyfYtPESDsia+96fkz8EQN/bDanAJ+Tj98aN90eT+bgamvPIPTPTCXEg= 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: c91f06d4-b57e-41fb-9fea-08d7480dee0d X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Oct 2019 14:28:16.0730 (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: h3C9s3G5GyqlrsmS41xsfg4mDjC5cND/GR6gXPp1NwsPZlPuOsJryt23bf2/G9aYdLRC7JMVkPSHM+C+AtoGFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6701 Subject: Re: [dpdk-dev] [EXT] [PATCH v2] cryptodev: extend api of asymmetric crypto by sessionless 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 Shally, Any more comments on this patch. If not please Ack. Regards, Akhil > -----Original Message----- > From: Shally Verma > Sent: Sunday, September 8, 2019 11:49 AM > To: Arek Kusztal ; dev@dpdk.org > Cc: Akhil Goyal ; fiona.trahe@intel.com; Anoob Josep= h > > Subject: RE: [EXT] [PATCH v2] cryptodev: extend api of asymmetric crypto = by > sessionless >=20 > Hi Arek >=20 > Only these changes looks good to me but do you have working PMD to back t= his? > Also, documentation updates? >=20 > Thanks > Shally >=20 > > -----Original Message----- > > From: Arek Kusztal > > Sent: Friday, September 6, 2019 5:28 PM > > To: dev@dpdk.org > > Cc: akhil.goyal@nxp.com; fiona.trahe@intel.com; Shally Verma > > ; Anoob Joseph ; Arek > > Kusztal > > Subject: [EXT] [PATCH v2] cryptodev: extend api of asymmetric crypto by > > sessionless > > > > External Email > > > > ---------------------------------------------------------------------- > > This commit adds asymmetric session-less option to rte_crypto_asym_op. > > Feature flag for sessionless is added to rte_cryptodev. > > > > Signed-off-by: Arek Kusztal > > --- > > lib/librte_cryptodev/rte_crypto_asym.h | 9 +++++++-- > > lib/librte_cryptodev/rte_cryptodev.h | 2 ++ > > 2 files changed, 9 insertions(+), 2 deletions(-) > > > > diff --git a/lib/librte_cryptodev/rte_crypto_asym.h > > b/lib/librte_cryptodev/rte_crypto_asym.h > > index 4fbef2f..0d34ce8 100644 > > --- a/lib/librte_cryptodev/rte_crypto_asym.h > > +++ b/lib/librte_cryptodev/rte_crypto_asym.h > > @@ -522,8 +522,13 @@ struct rte_crypto_dsa_op_param { > > * > > */ > > struct rte_crypto_asym_op { > > - struct rte_cryptodev_asym_session *session; > > - /**< Handle for the initialised session context */ > > + RTE_STD_C11 > > + union { > > + struct rte_cryptodev_asym_session *session; > > + /**< Handle for the initialised session context */ > > + struct rte_crypto_asym_xform *xform; > > + /**< Session-less API crypto operation parameters */ > > + }; > > > > __extension__ > > union { > > diff --git a/lib/librte_cryptodev/rte_cryptodev.h > > b/lib/librte_cryptodev/rte_cryptodev.h > > index e175b83..c6ffa3b 100644 > > --- a/lib/librte_cryptodev/rte_cryptodev.h > > +++ b/lib/librte_cryptodev/rte_cryptodev.h > > @@ -448,6 +448,8 @@ rte_cryptodev_asym_get_xform_enum(enum > > rte_crypto_asym_xform_type *xform_enum, /**< Support RSA Private Key > > OP with CRT (quintuple) Keys */ > > #define RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED (1ULL << 19) > > /**< Support encrypted-digest operations where digest is appended to d= ata > > */ > > +#define RTE_CRYPTODEV_FF_ASYM_SESSIONLESS (1ULL << 20) > > +/**< Support asymmetric session-less operations */ > > > > > > /** > > -- > > 2.1.0