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 CFF77A0471 for ; Sun, 8 Sep 2019 08:19:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 12DEA1F04F; Sun, 8 Sep 2019 08:19:12 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id A7A9E1F04A for ; Sun, 8 Sep 2019 08:19:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x886G7qI010431; Sat, 7 Sep 2019 23:19:09 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=eG4y5vsqvS/HjsVFqwhomLgmtWerz4wYVRuYKoX8nMA=; b=YhN/fR7LEhDQtY0kq69beDk6pi2TjRBi1pSCqMHT/2qEFV9RX2MqA2tplBX6NqQp5PXu gCl/l/GWiPVWqsRhayjdsncfct9lq1phGp4S+eLym9BmMKKs47hyC07GXwHzUNIhGdlC 4bqPdlJ+F5i5MJQ6dnnsilewVw2+DjL4UvgI7kR3IQr/w/uB/tUbg7JrGZsiwz3mAFix wupRD2rSD7cxhzqP+NAcFfJtdmkBUbC6zp+cPje1poy+EOV25SQpJWCVthkDZuJRhSg1 nuAmDJiksxMb9U3eWFIryWnSWauPOsYtr4pt803KsoyUWtu2k8x1DkH0UzZflCFaK/R0 Kw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2uvc2jah1k-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 07 Sep 2019 23:19:09 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 7 Sep 2019 23:19:08 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.59) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sat, 7 Sep 2019 23:19:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z7vztN3WDFPYwjuCNfa3vCnq/HvctT0Jv4Z0PkMdsclU7ZPymLaLGj+1DwDrNaW8idg3jLXVfqLbK/pBZz+RQmUVzirpptWvEKGFCmDaG2/ildGSaGEgetmGMF4u5/TXUUpzwqfYJNqe+xtUy97LOVCv9nvL6Ayh5JKJiwv0Yw3WaTn5JUXD8/qVAQSiu3sHBTst8tZsu4YSI4eU7baggDkFo4OqHg/qfuJVon9JSGTnhdgVwy6Y6R2PgeMn5QuEwzpeaLs6XqneAGXTLDayFOXEZkqRU+mPai7MIwm6c01iqjVC8h7YPwPoAHQIx1JsP1NqaZuha5379EkwBN2phw== 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=eG4y5vsqvS/HjsVFqwhomLgmtWerz4wYVRuYKoX8nMA=; b=NcvSA0hAG1bbdFTqhC+ZrszgdfVdQTvISC7kY3dI74Q4E0Uc7eF66l3B8yAthdAYK0sJxZvH7S+kLr+cCSgUnI05+fjZyau8HHb2sXqlQ/dcoKtQxCOmy8qF18abWFsygcP59816/p3yAdnc3/B1iWU+39KQrv95ROJKw8aLQTmA7jDQfz2VNqF40WiGPEa3z9pBRYpDkeMmMrslGtRjpPWfj2n02BXqtyIl8Hli57pJY0wv2R2EQzIqOmJBjHGW9Q4UW1dZkzYIqI1OV45ngMrAhB39LLIGN5ytyLZoebfue+KykEvov0uHMLJYNuBHWpuaBe9/culTquG/F5z09w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eG4y5vsqvS/HjsVFqwhomLgmtWerz4wYVRuYKoX8nMA=; b=lEwMwT6htNCIUDcNRDCWMXtwoX/DQaucDsc/rEC1nCBGfiQj58R6PMVIX93KfWdLic4hwSKRm2hjg+gaIBgD2Zfv/rpkjnZ3BVQcp7y19FHOevnDWfe7YZ8IrkvmKOiF3I7C+DbHTXgdysboPexjcJ78iPLJvwwn5KWU0Lw4fII= Received: from CY4PR1801MB2053.namprd18.prod.outlook.com (10.171.255.158) by CY4PR1801MB1990.namprd18.prod.outlook.com (10.171.255.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.18; Sun, 8 Sep 2019 06:18:53 +0000 Received: from CY4PR1801MB2053.namprd18.prod.outlook.com ([fe80::bc8b:1e15:cca2:105f]) by CY4PR1801MB2053.namprd18.prod.outlook.com ([fe80::bc8b:1e15:cca2:105f%5]) with mapi id 15.20.2241.018; Sun, 8 Sep 2019 06:18:52 +0000 From: Shally Verma To: Arek Kusztal , "dev@dpdk.org" CC: "akhil.goyal@nxp.com" , "fiona.trahe@intel.com" , Anoob Joseph Thread-Topic: [EXT] [PATCH v2] cryptodev: extend api of asymmetric crypto by sessionless Thread-Index: AQHVZKpmEKQl0zD15kuGJGDNdZUBWqchURFQ Date: Sun, 8 Sep 2019 06:18:52 +0000 Message-ID: References: <20190906115735.12488-1-arkadiuszx.kusztal@intel.com> In-Reply-To: <20190906115735.12488-1-arkadiuszx.kusztal@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [115.113.156.3] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0af25b95-603e-4749-c9cd-08d734246bdf x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:CY4PR1801MB1990; x-ms-traffictypediagnostic: CY4PR1801MB1990: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:608; x-forefront-prvs: 0154C61618 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(376002)(396003)(39850400004)(136003)(13464003)(199004)(189003)(486006)(5660300002)(55236004)(53546011)(186003)(102836004)(25786009)(74316002)(26005)(55016002)(11346002)(446003)(53936002)(66066001)(476003)(9686003)(71200400001)(71190400001)(66946007)(54906003)(316002)(66556008)(66446008)(81166006)(52536014)(4326008)(110136005)(2906002)(86362001)(2501003)(66476007)(76116006)(256004)(7696005)(76176011)(33656002)(229853002)(478600001)(64756008)(81156014)(8936002)(6246003)(6506007)(107886003)(8676002)(6436002)(3846002)(14454004)(305945005)(99286004)(7736002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1990; H:CY4PR1801MB2053.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: omKHLBqclBXqp15Jb8KNd8pKXLjyiuSUAWZPTTPImfyNqLOFrqSBS36twLAfERqUKnEpOp60uXyqmz7xUKuP0mSbpHArZp0+ygUxrcnEqV4xFKcPor6O6tfwoYijXu5VnIAwg90ZbbTT2RfGLs/9aXqsi9yq8TzZjGesSOLAHg19EEEOcM3lwOhc8YuooIST+Rxh00njBtqHpyDXDSiq1yY+beXKGKP7UHle8oTAhtAaU/2NNp1+d6tA5hBheemrE0DiL37hwvu+i3pgLbeis9uiJ54Z77ul7aDXUPIJ/1ayip1ib+f5NPV36DJzkSJjfcnaar4TxLoLNCccYrjtPCgnrIkUnEQnBpPe0g+4qhzS2jIvopaHeRjuM/WHKpLUUKj0HutmPPitpzda5rI2m0ULT8RHVtpbmvr1lppvvD4= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 0af25b95-603e-4749-c9cd-08d734246bdf X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Sep 2019 06:18:52.8700 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: K+A0WeAQX4tzbM/z4Q7qjbp/ITVTtDnK7dkkUSzvWROs4aY7POb4QxPPyfZ0zVN9IJopvgGOyL4soAevOpOQ8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1990 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-08_04:2019-09-08,2019-09-08 signatures=0 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 Arek Only these changes looks good to me but do you have working PMD to back thi= s? Also, documentation updates? Thanks Shally > -----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 >=20 > External Email >=20 > ---------------------------------------------------------------------- > This commit adds asymmetric session-less option to rte_crypto_asym_op. > Feature flag for sessionless is added to rte_cryptodev. >=20 > 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(-) >=20 > 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 */ > + }; >=20 > __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 dat= a > */ > +#define RTE_CRYPTODEV_FF_ASYM_SESSIONLESS (1ULL << 20) > +/**< Support asymmetric session-less operations */ >=20 >=20 > /** > -- > 2.1.0