From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E99BAA0C40; Thu, 5 Aug 2021 16:10:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D14FB40143; Thu, 5 Aug 2021 16:10:01 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id C292740040 for ; Thu, 5 Aug 2021 16:09:59 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 175E5a8t007997; Thu, 5 Aug 2021 07:09:52 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by mx0a-0016f401.pphosted.com with ESMTP id 3a8bkb936q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Aug 2021 07:09:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UEth5k4N1juoaSATdzyPlXoVwlGP53lmsoXMdkx88hYTuRQKVzZWzrMuy17cz//ADq0q8D/dkVoOhwpbQWztFBZE/C+aj8ck1ZnBlCyx14wFpwznhzP+VsFYp/UBWDa04co9dMiBS2UKMKt54WngGeAfS1IjN4uVurulhsKT+uhBZ5rEie/v4kt/fov/jZl4E2FT8570s08rigqwpFLJbLxXqIYhXbp2D0bpBE7W33YLj6Qo8flv5YTa3/pF97C73eZ7XdtR0umGb+QnXiMS4S6fdMN0cG1Z5M8kkel4O5D3/iTpqwt1KBO2X/Ew6aFD3ox1qIypXWXb6ekWaodDLQ== 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=Om0Cang80bxUtFfH/Ah0PdLXdXXlybrJQn4lknwYyII=; b=C3cmyOyq4uapfmMcEUnxVXZD650TIe+yX+oexKAIxP+ktWIBcHVTyhWkFHRUbPNHCGn9cyQk+vvrzW7CQKqBaBU68fUXX1svdIypxCsbd4l5x6udJ/9ZcJEYLe0a6/TYRZVi6LbVC9ET62QDl6wbP1DSFfZ1oqyW89fLYheKjxdPKVd8Xl/IuDMQ4jJo7FhFVYImuu9WCXhI3mdNAuahVH6ViZwisF09HVq9KtMnvGoN8oaoggkkhITHueFtERITAjcBIQIGyb1baxj2SsbMlax8AeFdaCZGUhuMiF67uKkZ/ZSgXkpa6mU6bhztPk6ghJreY4yDUkqB9XZK/jPXmg== 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=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Om0Cang80bxUtFfH/Ah0PdLXdXXlybrJQn4lknwYyII=; b=PPL0EwrfXzYRMdcAElPLmRXScqM9Wqyp7jDfbAWADF8NEvcR+iYQ+YzFvJs612U0k1TNTk7A8U8Z6cxl042ua6LYbRzaG1h8eXK+TB1PWhrQe7XkNRbFRGbh+lg3Q5KXiuMyIX1cQulani/kl41IaVdzEitS0jkaoXzTUf8NNqE= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by CO1PR18MB4618.namprd18.prod.outlook.com (2603:10b6:303:e1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.21; Thu, 5 Aug 2021 14:09:48 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::1455:9a67:a6e7:e557%6]) with mapi id 15.20.4394.018; Thu, 5 Aug 2021 14:09:48 +0000 From: Akhil Goyal To: "Zhang, Roy Fan" , "dev@dpdk.org" CC: Anoob Joseph , "Nicolau, Radu" , "Doherty, Declan" , "hemant.agrawal@nxp.com" , "matan@nvidia.com" , "Ananyev, Konstantin" , "thomas@monjalon.net" , "asomalap@amd.com" , "ruifeng.wang@arm.com" , "ajit.khaparde@broadcom.com" , "De Lara Guarch, Pablo" , "Trahe, Fiona" , Ankur Dwivedi , Michael Shamis , Nagadheeraj Rottela , "jianjay.zhou@huawei.com" Thread-Topic: [PATCH v2] doc: announce restructuring of crypto session structs Thread-Index: AQHXiF9IweFFp5bzNkS6B7curkbZUatk8ueAgAACK5A= Date: Thu, 5 Aug 2021 14:09:48 +0000 Message-ID: References: <20210803115512.694546-1-gakhil@marvell.com> <20210803120112.694697-1-gakhil@marvell.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=marvell.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4530f9b4-0949-4bba-1565-08d9581aaf47 x-ms-traffictypediagnostic: CO1PR18MB4618: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IVaAVX0vM+4g97eqIfpWEdtmrSzndiVw5uYO++QQUnOEW4BMURo4JHxIK9k6FUiR5CNtZIasEwMcZ0A0R9dcEoPq71p1xBHXBGvE0JMzUsqLgvM8caMngADaKgTWP5irQABSbKss3hG6LDzFWr073LXyg0finD4CdSDT/YLCxJ96ffJcI4hU83Lb4wm9j5euemInobv0QG9bGPwPn88dFk2E0MOjBnbGEJnxa/AFCmEXAyY6H0c7Rv/v+vyehVZcxtFZziOhOb+9M0NtPFTI33OKoo8w20Z2t77ZNDe0SVzMtDhVkPZWT7KO8WtDJ4B6iFlxHoljNd3gHg54GvXlI90FO3rMbYL83rcGciATRRYtwSsRSqoNEQ21CiKsckwJGuuWzEjHxPUVSO9Lw6LwKZaYgVq6a+4fIm3+bTDMZ95es6KZCPmt2XE3/FO/CL50tAEqrwihWOjP5lGKMLmCd1J95RDKg7AsFSPifYco8uBElBYZWn5kGpLUceRqi0FFyvpZec2gD6pQnEPrWwvm/GyWaX8Axrn4UUYWwy5Q4evjDmXJMmdtJMvuf4vLzoHVouDEODa9H3RojeFVk2wQ5p7NgAe5isQ09cNCrQe6vV/uOI+7poJC2QFV/hQbc0MhGAmaesN4dwV+7OWqOFHb0r75acvZLzyMdqBvpNx43uYfAXFncid6+zeNOMKB8dcMNyQ8/JRxi4KGLTbnGv+rZw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB4484.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(396003)(376002)(346002)(39850400004)(366004)(84040400005)(66946007)(52536014)(4326008)(8936002)(66446008)(64756008)(66556008)(66476007)(76116006)(6506007)(83380400001)(38070700005)(186003)(55016002)(478600001)(9686003)(71200400001)(316002)(7416002)(38100700002)(54906003)(86362001)(2906002)(33656002)(110136005)(7696005)(5660300002)(122000001)(8676002)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ObclGMbilV8/ys61tI5HlUPxhi0wdcjTee/evZ/6ZRvQ/+d70Eku/Mq2Ism7?= =?us-ascii?Q?S/602Nu6CwfTS+MxTBfWtw8mdy/h1O0naN19j8y7zni4YH4HXgDGwL6k/svP?= =?us-ascii?Q?Fzey24Q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/pkCIW5VCtph1ot?= =?us-ascii?Q?xkSpx7xH3nDYaYMxo/E3qIzEj7CCQtnoiEuyupRmEUCQyQStmUJkZMfCGYVs?= =?us-ascii?Q?0/x2mRcM5oGMTis16nIxlPRqV7qYBioPsDRUPekT5Pcfdq/g2wfmN6A0Qz/q?= =?us-ascii?Q?vMGYbipdFZNWdD3cAYuyEodBK+sWhP4ReGqB/CtWyeJmPJ2sEEeNYsIn6B1L?= =?us-ascii?Q?J6CHkGsZJ2uy1VO+f039u4+4tFlpvypoEXMVnfWeiv7r/fqoCxYooAwKx3KZ?= =?us-ascii?Q?dDAb9a8lHpR1TVrkOE+4bRiNNza6u4c5r03QGsP60fu3GK78PhLN1aaLx748?= =?us-ascii?Q?wDzbGwSL9D/9lJGZuRqZDcuM?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB4484.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4530f9b4-0949-4bba-1565-08d9581aaf47 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Aug 2021 14:09:48.0470 (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: VBmzpaJzoGWA1ttvmOCsHA1nNolQX+s3AZi8M+OMO5KlUdqrCgxhEx92GPNT3kfqAfVl4/cCIa7Jlo6WMEFXVw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR18MB4618 X-Proofpoint-GUID: zLTSSHjRn61rxcnZ_8ifdAn7gQt9bLTU X-Proofpoint-ORIG-GUID: zLTSSHjRn61rxcnZ_8ifdAn7gQt9bLTU X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-05_05:2021-08-05, 2021-08-05 signatures=0 Subject: Re: [dpdk-dev] [PATCH v2] doc: announce restructuring of crypto session structs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 Fan, > Hi Akhil, >=20 > > The structures rte_cryptodev_sym_session and > > rte_cryptodev_asym_session are not used by the > > application directly. The application just need > > an opaque pointer which it can attach to rte_crypto_op > > while enqueue. > > Hence, these structures can be internal to library > > hidden from the user. > > > > Signed-off-by: Akhil Goyal > > --- > > v2: fixed trailing whitespace. > > > > doc/guides/rel_notes/deprecation.rst | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/doc/guides/rel_notes/deprecation.rst > > b/doc/guides/rel_notes/deprecation.rst > > index f81bd87f10..c540c90f8e 100644 > > --- a/doc/guides/rel_notes/deprecation.rst > > +++ b/doc/guides/rel_notes/deprecation.rst > > @@ -151,6 +151,11 @@ Deprecation Notices > > * cryptodev: The APIs for interfacing between library and PMD will be > > marked > > as internal APIs in DPDK 21.11. > > > > +* cryptodev: Hide structures ``rte_cryptodev_sym_session`` and > > + ``rte_cryptodev_asym_session`` to remove unnecessary indirection > > between > > + session and the private data of session. An opaque pointer can be > exposed > > + directly to application which can be attached to the ``rte_crypto_op= ``. > > + > > * security: The functions ``rte_security_set_pkt_metadata`` and > > ``rte_security_get_userdata`` will be made inline functions and addi= tional > > flags will be added in structure ``rte_security_ctx`` in DPDK 21.11. > > -- > > 2.25.1 >=20 > Have you considered how crypto scheduler PMD can support multiple crypto > devices' opaque data pointers after the change? Of course it is doable by > adding dedicated APIs to the scheduler PMD - shall I assume you will work= on > it? I haven't considered about the scheduler PMD yet. Would need your help in a= ligning that. The deprecation notice is to allow us change in 21.11 timeframe. Thanks, Akhil