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 A166EA0471 for ; Thu, 18 Jul 2019 11:48:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 11C311DBF; Thu, 18 Jul 2019 11:48:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id CB0121D9E for ; Thu, 18 Jul 2019 11:47:59 +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 x6I9jgaP013290; Thu, 18 Jul 2019 02:47:58 -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=N3a3NfivL9amIwgIyetFkMZ9fiClypzPez2NA9B+img=; b=LmJ2kT0NYWSClCH8w3UwaeEaXsM0qOtOOKA8dINL2P4jwD21jNtgBYbi+Y/HUWAWw+oh E/qbQntBwUI/rW5dmEMG7lDmGXEC/LyDj+30BEHVr0rQtRnJI8QjqduG8/rNxOgLhXb0 t7zhkHBL3i+nvr/6JvGx4Zs36LqbA24d/4p1nb7ceJm1hRxBDfTC45Mwr29mGzRTNeyA 9FoMcS5w4QvUW4ZwUaolFby/deI3LNj81bh4y4sdl1UV49VC7+usj1mqtVn21OqjJEUO ldLehk36MUa6PVZ6b12mHKv3zgouS1urONfFLjnaFOGbHmTOyIMZ5lrNkfjo0Lv1R/rs pw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a2be82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 18 Jul 2019 02:47:58 -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; Thu, 18 Jul 2019 02:47:57 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.50) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 18 Jul 2019 02:47:56 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mGhiPgEgdP4WQN3ARynNANwHHqWg+nM6AtlMrO8HT+4MKUXs5Of9IL0+qeItsY71q6VDSBoXhck8WOQDmzkR8jWQyUU9EUeeYBESIw7KbeXbqKQC5jCkZY3Lif18y2HjSNWBwKjvdNwjuPnRtUVB25uZ3fENUM6n+9IhIjjgsNwDW9ntzgh7yIAWZriJHsoVeFXNEf3BxU/4n1duGD2yeUE1cUIRXyytAKoT0CYZtrEGWy0XhPYz0xGACaszM+Oyph+blTrdac6uGb+L2ylHhJd1m8UovmM/JEHXXEYwU19QIiJqZkYjvrAV0y43Agr1MXsN8VdmSCDv17ZTziQglQ== 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=N3a3NfivL9amIwgIyetFkMZ9fiClypzPez2NA9B+img=; b=F5uaEq7g0bZQqZTVC7D5syfrnsVylW7dUyx0K70Wx15OHbXEGPzR80H9gLaGmUv3d19g+GDLEjjfIPX7raJEExNj7Dd2ndQIq/iQrTTVnNZpxQzz/g3EvBWwtRx1U9PnIYidHA6ieWojQSmYBob0pxXZFSTZ2Diilsxp71tLBaGjBaYAX+DRrTn3z3m5PlFCvwt7oLpF1unjNFBGh7R22bgQZ+A1ePFj/6rJtFhrp+J5rrenTRut8Kd0Dvj0pWjeb6dZEDZLUjTIiyzJlHyDs7upygas/oRULP8qR7hBv+fWG67ZPbGSprzvSN3SQi8p/o7AwG42AY6TTLcKnRhg8g== 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=N3a3NfivL9amIwgIyetFkMZ9fiClypzPez2NA9B+img=; b=wiq3h43JKh+ewtRF1NLbh6369KScwvOKy6i1KmzUtmkbiBTSFwJXLxzYWdFiMKLItnLAOw5Adfzh78zPc+ocCaCUv9N+BS3JRa+wgMny7a4MVNLVCG8j2tsHE/W90cL+WjczBgZMOJd/UCqwYXll5IhdncgP7/mnouIog6dx6tU= Received: from MN2PR18MB2542.namprd18.prod.outlook.com (20.179.82.221) by MN2PR18MB2894.namprd18.prod.outlook.com (20.179.22.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.14; Thu, 18 Jul 2019 09:47:55 +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; Thu, 18 Jul 2019 09:47:55 +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: AQHVPJv0pVfcMaXlUU2QhZUQnfDIWKbO2XKAgAFHzrs= Date: Thu, 18 Jul 2019 09:47:54 +0000 Message-ID: References: <1563366852-23118-1-git-send-email-ayverma@marvell.com>, <06EE24DD0B19E248B53F6DC8657831551B280B17@hasmsx109.ger.corp.intel.com> In-Reply-To: <06EE24DD0B19E248B53F6DC8657831551B280B17@hasmsx109.ger.corp.intel.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.51.233.114] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 81d4032f-e8cc-43db-620a-08d70b65021d 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:MN2PR18MB2894; x-ms-traffictypediagnostic: MN2PR18MB2894: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 01026E1310 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(376002)(39850400004)(366004)(346002)(13464003)(199004)(189003)(11346002)(2501003)(66946007)(64756008)(76176011)(66476007)(446003)(26005)(55236004)(76116006)(476003)(66556008)(66446008)(486006)(53546011)(102836004)(52536014)(86362001)(14444005)(8936002)(229853002)(5660300002)(81166006)(9456002)(81156014)(186003)(256004)(236005)(55016002)(9686003)(6436002)(7696005)(68736007)(54896002)(53936002)(6606003)(2906002)(6506007)(25786009)(110136005)(99286004)(54906003)(14454004)(316002)(4326008)(8676002)(478600001)(71190400001)(71200400001)(66066001)(6246003)(74316002)(561944003)(3846002)(6116002)(78486014)(33656002)(7736002)(19627405001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2894; 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: FkE+t1PTC6exOXg2cEjF0KIg2/pu83eb4UQRvyY4v9pSR9TUMHBDBJAm9wDOg0CkJDHdGlKThalE/1bAMhEo4Psx5IN1PQZrAZPynoHd+/EUf/wSfm58FaRzYej2tOHgY0IQm9plnHgLT9opXVX9h4SSyzPEbr72Vh9IL+kCytwCvRWeaFMINIg9AF0yK5YX8nWD/xqi1phBLv3Nd6YN1JJtIap8N4HGMj1NXP4xabE01Oga6RDT1Gy920IAwHdDy6jCZ2e7L7IKdf46124eb1jD606zFpYwMkxn1jCNufey2DF4lOpQ67MZStYRcRkoktH2dpwSrnCdU+KsLfEigTPJgqlby+kGQ+lQ4nD1frWp6/2f8L03uiGY+lPDFTO+hBL2fyVBuU/+OMjbediMQ6Hr6AYACixZGdRrQ+0GUZM= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 81d4032f-e8cc-43db-620a-08d70b65021d X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2019 09:47:54.9967 (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: MN2PR18MB2894 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-18_05:2019-07-18,2019-07-18 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 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