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 C0E7B43CA1; Wed, 13 Mar 2024 19:07:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5991C406BC; Wed, 13 Mar 2024 19:07:23 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 2CB9A4025E for ; Wed, 13 Mar 2024 19:07:22 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42DCntZR016161; Wed, 13 Mar 2024 11:07:21 -0700 Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3wucg2sce0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Mar 2024 11:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PuKYcojsZik4+v70LKs+Ml9OlJrqFZEIxyxnazOSqUR5JOzDfIsrs2cQ8xchU5GCTP/SOG6zRSUbXu9q89dCDiK+zxNK05UTDNlaEZ55gLuaLuzzNOQuPyO7NAJcWcOhswYzEEbU9MN7T567J5muDtzhEoOJbXHFOQpId/JqdF/JpIRrgZGdxxXVfm/9R2zUoVSCYkX9LsX3lvlvm5cM6TnXRprmbIUGwSgDDGO2bijKlB7BWusCdDhuuE4FtgQxcwn1ePzniXsYyuE1xDFIUTuQMGebDEb49oZYQwapSuvGZJ6ItoyjXRdy3MKn59e/Ugg0L2JivPAO82Qt9+zSrg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=qw4PRblAZJAhB4D/o/HEfI2AXy74RulOJ8/shxgWn2Y=; b=AsnXmTww0M6yn9p+HN3+4M5L3iBtMZ8vCpV+BzDTigRwk1kdgRkkfeFLclZ30lRXnc1NB7vsC3XLiAEHbLEBtwXT+6sqUk0rzbLwxfLI/TxYjqYZDeTiIA4h58DslmR31pnpNUx7e/NAzHYURz/82FkHj6Ne32nWVwPuGkA/CGn6+nctHRCtrC7Up49Et5S/OMhnxbFD3ny9s9QzhH+cgx0+7d2bo48ADmLEvq+rU0RefB7zemHy+k2/rJ6uC+EHnVch+c37PlpeT/CyegoV47SUpp3ssfMr0hYbdMRcz5LzKyL+maw6Si2APB6s4yqVd1oO9f0UOyWOGpOryKSPpw== 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.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qw4PRblAZJAhB4D/o/HEfI2AXy74RulOJ8/shxgWn2Y=; b=e02nBCd5rEJIkWz2pkxvOafRRqR1WIcpmS2RVtleM7wlC4J+uUowDRamIXoyNU91F7y3WrwaAQcuC6ph18p6x1XGHSIa1ewJqJFmdJmPMQV4aZSUzbAuP+4D2qKioArCUNGEtVSxURe0B+Pk9eRcnA3Nav6gCSSfYoaZi62m4wo= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by PH7PR18MB5331.namprd18.prod.outlook.com (2603:10b6:510:249::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20; Wed, 13 Mar 2024 18:07:19 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::4e74:4cf3:63b6:b149]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::4e74:4cf3:63b6:b149%4]) with mapi id 15.20.7386.017; Wed, 13 Mar 2024 18:07:19 +0000 From: Akhil Goyal To: "Kundapura, Ganapati" , dpdk-dev , "fanzhang.oss@gmail.com" , "Ji, Kai" , "Power, Ciara" , "Kusztal, ArkadiuszX" , "Gujjar, Abhinandan S" , "Jayatheerthan, Jay" , Jerin Jacob Subject: RE: RFC: Using and renaming 8-bit reserved field of rte_crypto_op for implementation specific Thread-Topic: RFC: Using and renaming 8-bit reserved field of rte_crypto_op for implementation specific Thread-Index: AdpuzBj7+MAvLpaLTkGIacnPGT5mjgAUF2vwABjax3ABNI8H0AAAVEBwAAg+5mAAPimBkA== Date: Wed, 13 Mar 2024 18:07:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB4484:EE_|PH7PR18MB5331:EE_ x-ms-office365-filtering-correlation-id: 2050a326-c9ef-4197-b8b2-08dc43886c7f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yO+g7RiG6DcFkLSh8ejVkU0QxAyGHczu8l89eErBmi/Q2GSRfkpNhb+cpkghR9gtahR0Wi2faf7Xzu1nHK4vwLRoYsadzPvGtaJz7BN+weA+5wS2N4n2xALU3a7A980RtXozLst5cTEEwny1iTsOfG+IJvocwaWAgzj3TbridM6YhSCgd9UCjOw0cItaOsvZ7WnF0bAN3TiCpyXhpt5bjhHLLb+z38Z3qW7mioVA4pWZpXB59G9J4RD82hGHSSjAp8H/XxUeZw7YnEAC8fLP66AblUvMU4EhsqrTiTGNMN+B/fZUEifr1f4COC/0iZktuPhM6hCFyOixdZQVhElvWNAFxsY9tXRN3rfQ7neXwoPx3zBZcEFIX1aIFYgBkwAQlzuA83fCD2JkuDUqlsV55p7/1wkDy0e/HYohgN6fok8AT3XWli2j8F0kxYRKmyK9YMzr2TctLkovpPz6YSRUvLAZMHdtzZtoHImR3bGx5+MQ/g3Na2E9fwJqQNTfFP+ARM4uNaHN05eHLtdslemsYZOLa8rYxeTxCLf/jPKhnmZ9tfII++8w8KGS225wxVlUOswNoYG5fd+9HAZKSnh7FF0H/F1Lt7/5UcI0spgi25cZePLaIt9JxOFpgVyFr342c3DgHn82sZS65/n7t2EGge0LJVUUzLd7M5DDCQCI/lkuvej7V0nI7hVZNEu1y3LyCi2Z7tvofyY+yBzBt/nsJnoOgLzH+9YDQ80OGZFQ2Q4= 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:(13230031)(376005)(1800799015)(921011)(38070700009); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eqw39OW01LrmvHiZkSGHq/gNMGhCMaiDNFtHQSHs0LpjGPsIwYXhUy4WB9lW?= =?us-ascii?Q?LivcAorRGd0pqtDL4io1q3YNjd7FcPLm8zHpzlgbBp33+qzeG6SixLWDeTGT?= =?us-ascii?Q?x8lM0C+ny62VB3G4iUEVjpDX2aMqlJXdpu5ob/PKGvtOOssx/s4jxFa/HJbU?= =?us-ascii?Q?PuWfstl9X43Yolx/y/4hBkRSdg2dR5uIrRxiJ1L18oXrn6oB/ruywcN9RlXi?= =?us-ascii?Q?Gz0d5KDuQ69civn+XJPlZXEYR6hew9Y5/peLNT9kRPjGzU7uPmMUC4fsVYvD?= =?us-ascii?Q?AEtE5UJBI9P1NeJgsrPGwNT44BAOevPszyRmgNC61HzGNrhdsEzE+BoofiSE?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oXfGp3lvkIl6foeZFja/E+?= =?us-ascii?Q?jbZ9MwuC/Dbsrewc27yexCYHqKd4SKDwkPk7TAK9f6mBVMu8QYPQNGUJw1Ji?= =?us-ascii?Q?90q51SFmcjHs3AdDAFwo45fYCVEYZGDy5kg1tXiv1p6TrvRv/68Iw4MWu0+O?= =?us-ascii?Q?0YcceauoDnGIiUDeGV2DRqCS9IAqieQZXdlscCzhmGJUhrSHTa4insrLslue?= =?us-ascii?Q?4NNCFxCJotYiX1s0NuO3YtZ0z0B43XXrTbbE45uZJp8aK64IAJu2KLWkP4dk?= =?us-ascii?Q?LUkLzQazXtykKCub50AM2g7atScAnaligj+QBUhJKL6hYc9FPA+oTUR8jl7Q?= =?us-ascii?Q?IBSzScRQ1nSUaOoXnn3e34Ek0HYyLk/tGon9Q21l?= 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: 2050a326-c9ef-4197-b8b2-08dc43886c7f X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2024 18:07:19.4258 (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: Bmz02hvHWh4FvmjP3FtPGVLZP4EIqiPsZpsygf5LZGbKUZis+7SfTu6NanTIN3MUluqxPutm2BxXtN68JdUE0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR18MB5331 X-Proofpoint-ORIG-GUID: J_IkUbZ4aPJcVD4qLx-q1MJNSFS5y41d X-Proofpoint-GUID: J_IkUbZ4aPJcVD4qLx-q1MJNSFS5y41d X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-13_09,2024-03-13_01,2023-05-22_02 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 Hi Ganapati, >> Is it not possible to use rte_event_crypto_adapter_enqueue >> if you want to send the event context to cryptodev? > [Ganapati] No, event crypto adapter sends only ev::event_ptr as rte_crypt= o_op to cryptodev and not event context. >> While using rte_cryptodev_enqueue() all previous stage event context is = meant to be lost and=20 >> It would send a new crypto request to cryptodev and is not supposed to b= e aware of event context. > [Ganapati] Yes, proposal is for sending implementation specific value fro= m eventdev to crypodev and vice versa As discussed in a separate mail thread,=20 impl_opaque in rte_crypto_op is not generic and is specific to your use cas= e. The crypto dev wont be able to make difference whether to alter it (for any= other usecase) or not(for event case). As per definition of impl_opaque is meant to be consumed by driver. Hence t= his will contradict the usage. Since impl_opaque in rte_crypto_op is exposed to driver. Drivers are free t= o use it. You may consider using mbuf dynamic fields for setting some userdata for yo= ur use case for each packet. See rte_security_dynfield and add a fastpath cryptodev API to set pkt userd= ata which is opaque to driver (similar to rte_security_set_pkt_metadata). Or else add a similar schema to introduce dynamic fields in rte_crypto_op. Regards, Akhil