From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29D94C76188 for ; Fri, 19 Jul 2019 14:50:54 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id A0A142184E for ; Fri, 19 Jul 2019 14:50:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="VIuEiGXN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=marvell.onmicrosoft.com header.i=@marvell.onmicrosoft.com header.b="jT62fTK7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0A142184E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 69BCB2C17; Fri, 19 Jul 2019 16:50:52 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1F67F2BC7 for ; Fri, 19 Jul 2019 16:50:51 +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 x6JEnjgM026445; Fri, 19 Jul 2019 07:50:50 -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 : mime-version; s=pfpt0818; bh=Vntg3uzCEMKlJ/F3geaTC8QuZ010QTtie27pKC4aeBc=; b=VIuEiGXNErATovQo8F1s8mk/sdCIaAukZgKrJlil5uBknC8j6hj0gGAofCVL6ozsdZO4 DH6doScIFRxF4XoAeynktig7RHHnCcYXIajjpr1tD607UfVxZKjIChmu0nyB6vtpdKsQ 8TbAut6XbqVHhpWSgPnRIJrsw14v8riQglGT69xmKmbNKO5hYSbJ7/RBJ3VRmZmOb43X R2fzGxmlObdc1oVrWR67yHZ2iG8MYsN2PVVY2oOj+f2RSwKMxuj5ZXKZfM3WJik5YeP4 Ipr+SFbyLiqC5HEzNFdjrkMkx/i2RT4IASCh7ZretJbx2MnoHx4oKfcqKbG9Z5ZY03Hf oA== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a2gwxp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 19 Jul 2019 07:50:49 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 19 Jul 2019 07:50:47 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.51) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 19 Jul 2019 07:50:47 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f19b9X0LBZ9f6NNdcfuoFMgSjuIc2FODBY02lUN/eZ9nigcwZwDzRRgMt0oSjzrG4kMbXvi71R+vz14Webttadx4usQHwhwnjcXt1bYfema5X+63lqGoZhOe0Ezd1t/z58KDRNhOFi4FjaQ02igyW+x3O+GPzPHNmBAlXJe7bK55AZNOXDVf/uStHiakd1eR5yKO+kGlas8xFG7RNnejuRe/YYFGyHjdV0uH1BWULL6HzNARQwve6vSjDL06LFoRLUQxKSkVip+QN+BAxpknkawe88YMqq2CZJh0Gi0PTyan1cB5Arh5c/wMZ9X+4XXuqqbSM27fx/fy79VZunCY0A== 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=Vntg3uzCEMKlJ/F3geaTC8QuZ010QTtie27pKC4aeBc=; b=S0qmrVzD1rpwjqTCryttMihhziFnjVdS6cDjMzoe0b0WvuWDp57RA17gs04qyMxa3UUo5/XwBaqVz+gLP6Olk7Stp29Xs0GdXagNbPSiaNUgf2teetEywmVBtYf76/2GjDRcc7tKESQo/CTzCFdh31PDXDLOCUs+H8KPB9kqfmj5tD7R5lrY/QReSTw4CVLykR77qgwCbT7FQ5ipt3rjR9XRZtchET5tx2koe113LRTXjCI+Sde771LirUsqk/m3CjyrBmWwbqzwlfAe2o/c9WA6t6E8Ts0slPbKfoJiTkbbXcczKotqtZcBqUH1GbQZ5Ztj5OjxEcpFaVVi0c7nvQ== 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=Vntg3uzCEMKlJ/F3geaTC8QuZ010QTtie27pKC4aeBc=; b=jT62fTK7SwBOj7CeFNeNSjzGPnKaasw5u/4JVMWncNy+zJY2V4fhmJzyNEaItf9ogDaXauFUBsH1SfLrbz3DkIl5pfPoqPP5el0J/xSWmxL4eEkFWdj5HQ/gw3AYti0byV4w8zNi8QWzKzx2q40vyxq9gQ87RuSpvJlHEDQX4dA= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB2846.namprd18.prod.outlook.com (20.179.21.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.14; Fri, 19 Jul 2019 14:50:46 +0000 Received: from MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::74b0:9895:ebeb:2e03]) by MN2PR18MB2542.namprd18.prod.outlook.com ([fe80::74b0:9895:ebeb:2e03%3]) with mapi id 15.20.2073.012; Fri, 19 Jul 2019 14:50:46 +0000 From: Ayuj Verma To: "Kusztal, ArkadiuszX" , "akhil.goyal@nxp.com" CC: "Trahe, Fiona" , Shally Verma , Sunila Sahu , "Kanaka Durga Kotamarthy" , "dev@dpdk.org" Thread-Topic: [RFC] mark asym session-buffer non-reuseable Thread-Index: AQHVPJv0pVfcMaXlUU2QhZUQnfDIWKbO2XKAgAFHzruAAeeRiA== Date: Fri, 19 Jul 2019 14:50:46 +0000 Message-ID: References: <1563366852-23118-1-git-send-email-ayverma@marvell.com>, <06EE24DD0B19E248B53F6DC8657831551B280B17@hasmsx109.ger.corp.intel.com>, In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6ffb1f15-8d0c-417b-0b34-08d70c587b5c 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:MN2PR18MB2846; x-ms-traffictypediagnostic: MN2PR18MB2846: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01039C93E4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39860400002)(396003)(346002)(136003)(376002)(199004)(189003)(13464003)(76116006)(66946007)(14454004)(66066001)(68736007)(19627405001)(54906003)(6246003)(66476007)(53936002)(6606003)(64756008)(2906002)(66556008)(66446008)(8936002)(14444005)(256004)(478600001)(81156014)(4326008)(74316002)(7696005)(5660300002)(7736002)(86362001)(52536014)(486006)(6116002)(25786009)(3846002)(33656002)(102836004)(76176011)(9686003)(55016002)(8676002)(561944003)(2501003)(6436002)(6506007)(11346002)(446003)(476003)(236005)(229853002)(99286004)(81166006)(110136005)(186003)(26005)(71200400001)(55236004)(316002)(71190400001)(54896002)(53546011); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2846; H:MN2PR18MB2542.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: FNvImO1ImcrOjaCIbghh/0aI6pYHraLaR+MxOoHxtHmYjlkjWoU98EwKyCoXtMSdE/kxg7XBkrbEfhcB5Fwuj9FqX2sxKVgKmLPemaDe/YvSq05b6zQykql70tX820BOi1VUg/18Pv/lfO/aTsE3mGzazFg2AkBs/twMXFM0ul0qKe9lXV2J07gMtpQ5SEBWyeRzj/ewGYf6Dhr7ohkseYgxmjnxIpDg7mYQKqq20K7YBxCdDeqwbR25xLg60oZfv4MVNC8O32EangHUTRAVP7ztIw3YCMr/ok/pW/d59u7YggvMXdWeut47t5jUkGSv4723lMm5p9N+JerHUiJPZoWhMbuWLshsW6x3ieNAID0zDzCfvfJEfvhslxEbphVSrEV4aexXoSPAmubDuo4cGiTLUzGkB58GMBIfmBxO7gA= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6ffb1f15-8d0c-417b-0b34-08d70c587b5c X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2019 14:50:46.1740 (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: ayverma@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2846 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-19_10:2019-07-19,2019-07-19 signatures=0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [RFC] mark asym session-buffer non-reuseable 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 Akhil, Arek, Fiona, Since this require changes in other Asym PMD( qat) apart from openssl (we p= lan to send changes for this), so should we need to send any announcement on ABI breakage here before prop= osing patch v1? Thanks and regards Ayuj Verma ________________________________ From: Ayuj Verma Sent: 18 July 2019 15:17:54 To: Kusztal, ArkadiuszX; akhil.goyal@nxp.com Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; dev@d= pdk.org Subject: Re: [RFC] mark asym session-buffer non-reuseable Hi Arek, Please see inline. Thanks and regards Ayuj Verma ________________________________ From: Kusztal, ArkadiuszX Sent: 17 July 2019 19:40 To: Ayuj Verma; akhil.goyal@nxp.com Cc: Trahe, Fiona; Shally Verma; Sunila Sahu; Kanaka Durga Kotamarthy; dev@d= pdk.org Subject: RE: [RFC] mark asym session-buffer non-reuseable Hi Ayuj, > -----Original Message----- > From: Ayuj Verma [mailto:ayverma@marvell.com] > Sent: Wednesday, July 17, 2019 2:34 PM > To: akhil.goyal@nxp.com > Cc: Kusztal, ArkadiuszX ; Trahe, Fiona > ; shallyv@marvell.com; ssahu@marvell.com; > kkotamarthy@marvell.com; dev@dpdk.org; Ayuj Verma > > Subject: [RFC] mark asym session-buffer non-reuseable > > This RFC proposes changes in asymmetric session usability of transform > structure. In current implementation asym xform is seen as temporary enti= ty > that can be re-used by application once sessions are initialized with it. > > This enforces PMD to copy all key buffers during session setup time. Sinc= e > life-time of sessions are small, so we can hold these buffers with sessio= n, [AK] - what is you expected session lifetime? (2,3,50 packets?) [Ayuj] In practical scenario like SSL, handshake will happen in some 10-15 = packets. > reducing memcpy time by marking these as read-only so that PMDs which > doesn=92t require any manipulation of xform data can directly use these > buffers in session configure. > > So, sending a proposal to mark xform as non-reusable till lifetime of ses= sion. > This will help PMDs to reduce session setup time. > > Ayuj Verma (1): > lib/crypto: mark asym session-buffer non-reuseable > > doc/guides/prog_guide/cryptodev_lib.rst | 6 ++++++ > lib/librte_cryptodev/rte_cryptodev_pmd.h | 2 +- > 2 files changed, 7 insertions(+), 1 deletion(-) > > -- > 1.8.3.1