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 1EB57A0487 for ; Sun, 30 Jun 2019 10:37:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 232375424; Sun, 30 Jun 2019 10:37:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 5837C31FC for ; Sun, 30 Jun 2019 10:37:17 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x5U8YtLF008190; Sun, 30 Jun 2019 01:37:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=cro9SZFQzm3pqKh7giJ84HU4ygNyW7h1J0QuONfWuxU=; b=DZ1GaNho8lpJfTjvSb1Iwy3F1oX6w7nkD3Xiii398pohzBbI9NvQEo4gXWvOl3Fv/1Eo 0nvTXyZDqm2TbWmsB/EF+EPAJMcztjq3XRwK70RxY0ld5TdTzwc+rbi/FyP0/5DKhbBE /Gu0SS0kYVsDF0BCK3aIw8BrIMz09MSJLKLdKiKiXOtCdwRzc7snx7Ze4ZeI78OLjjTz OS7sVCvsKD4ReqWvaC580sP9LayBgswtVBHnFmqCK1iEn6BNoK2gAYL0tyaXxfdIKL+0 J8xCGTNbBbhvgsmuNPHaEyt5CULoAFxO7HitEP4Ljovb6Q1VaQ35TcIezkbJM4VVs+6w sw== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2te5bn35j5-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 30 Jun 2019 01:37:16 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 30 Jun 2019 01:37:15 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.56) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sun, 30 Jun 2019 01:37:15 -0700 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=cro9SZFQzm3pqKh7giJ84HU4ygNyW7h1J0QuONfWuxU=; b=oE6X5rqK+9VPzIsTT8y1ZN8AGNqN+Ey0SYlNGHEnWpoJOZDZWQ14cOoEwT+q8BArl/Ed3dhCQEeYHW9TnmNDoXWmo8m8H3XHf8emeaT068zceUSlan/YM96i1b1kJSmqlrqEat6881/Y8Cjv4n/SbZw/tkvD09IdmGuNF58Yd4A= Received: from CY4PR1801MB2053.namprd18.prod.outlook.com (10.171.255.158) by CY4PR1801MB1815.namprd18.prod.outlook.com (10.165.88.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Sun, 30 Jun 2019 08:37:13 +0000 Received: from CY4PR1801MB2053.namprd18.prod.outlook.com ([fe80::8503:5758:277b:1fe0]) by CY4PR1801MB2053.namprd18.prod.outlook.com ([fe80::8503:5758:277b:1fe0%4]) with mapi id 15.20.2008.018; Sun, 30 Jun 2019 08:37:13 +0000 From: Shally Verma To: "Trahe, Fiona" , Akhil Goyal , "Kusztal, ArkadiuszX" , "dev@dpdk.org" Thread-Topic: [PATCH] cryptodev: extend api of asymmetric crypto by sessionless Thread-Index: AQHVKD07D5Y9TE/TGU6fyYBZ3yyQM6aqZdAAgAUH9wCAAdOy8IAAG6EAgAKQA8A= Date: Sun, 30 Jun 2019 08:37:13 +0000 Message-ID: References: <20190603194411.8352-1-arkadiuszx.kusztal@intel.com> <348A99DA5F5B7549AA880327E580B435897A26ED@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B435897A28B6@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B435897A68FE@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B435897A7E73@IRSMSX101.ger.corp.intel.com> In-Reply-To: <348A99DA5F5B7549AA880327E580B435897A7E73@IRSMSX101.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [171.49.225.231] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5f069172-213c-44d1-3137-08d6fd362648 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:CY4PR1801MB1815; x-ms-traffictypediagnostic: CY4PR1801MB1815: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 008421A8FF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(366004)(39830400003)(136003)(376002)(199004)(189003)(13464003)(33656002)(66066001)(229853002)(71200400001)(6116002)(71190400001)(2906002)(478600001)(8676002)(86362001)(81156014)(7736002)(8936002)(3846002)(81166006)(305945005)(74316002)(53936002)(486006)(53546011)(76116006)(316002)(2501003)(76176011)(52536014)(6506007)(14454004)(73956011)(9686003)(55236004)(5660300002)(26005)(55016002)(7696005)(186003)(102836004)(6436002)(68736007)(256004)(14444005)(66476007)(66556008)(6246003)(66446008)(64756008)(25786009)(11346002)(446003)(476003)(66946007)(99286004)(110136005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1815; 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: tzTlAIM1K0Z3FtC/tnGzWazn2BqXij5M5Y7BL6/B2CW+mcyu91IQ8Gy/NaCS18Ws27Pk2ugyqpk5/zLqWrfYmxWndDEfzty1VOTqdFbZTlcDIdaAThYmTllX/4d9mwhyv4Tj/NUQtvcI5fRVadQ3JfGESbfRHGmYFbyjFawdMxULDa/r62owh+zPPiuXeb9nrUUrocCreCuskpdDUo+ksI3Arj5Rn1Rrycq/vuPefEoBz24zDDrpovBAo5ac2NHjHOBiAJ+i6nMwTu9OHeNVy4+PJ1AezNJdsIxQWnONqWLta06ljhn9HhBhJZynPdOOOmito+fzr3K3SZzXyylvyS2xiWcrPkFTLQzayTJkMfLqZjnAZTgDr6dBTrvvCbgmKxBK7wHjgYvdU+GPUeHyICiiF4BXkhiIsSH/Bvk6+qk= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5f069172-213c-44d1-3137-08d6fd362648 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2019 08:37:13.0891 (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: shallyv@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1815 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-06-30_03:, , signatures=0 Subject: Re: [dpdk-dev] [PATCH] 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" > -----Original Message----- > From: Trahe, Fiona > Sent: Friday, June 28, 2019 10:58 PM > To: Shally Verma ; Akhil Goyal = ; > Kusztal, ArkadiuszX ; dev@dpdk.org > Cc: Trahe, Fiona > Subject: [EXT] RE: [PATCH] cryptodev: extend api of asymmetric crypto by > sessionless >=20 > External Email >=20 > ---------------------------------------------------------------------- > Hi Shally, .... > > > > > > > [Shally] I would favor to have feature flag instead, to keep it simple= . > > We're relying too much on documentation here. Any op status, be it > > INVALID_OP_SESSION, or NOT_SUPPORTED does not give clear reason for > > failure. Assuming we agree on feature flag, then next question comes > > if PMD set SESSIONLESS feature flag, then does that mean it support > > *only* sessionless OR both "session" and "sessionless" ? > > To solve this, we can define it like this: > > 1. if PMD does not set _SESSIONLESS feature flag, that implicitly mean > > it support session based only (which is current case) 2. if PMD does > > set _SESSIONLESS feature flag, then app can certainly use sessionless, > > but if it invokes session init API, then > > - if PMD don't have session support, it should return NOT_SUPPORTED i= n > session_init() > > - if PMD do have session support (which will be our case), then it > > will allow session APIs. Then its app discretion to choose either of > > these > > > > Does this sounds okay? > > > > Thanks > > Shally > [Fiona] Yes, this is ok for me. > Or to paraphrase: > sessionless feature flag just informs about sessionless. > The response to session_init() informs whether sessions are supported or = not. > That sounds perfect. So, we will have v2 for this?=20 Thanks Shally =20