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 4F979A04FF; Wed, 27 Apr 2022 17:54:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40BB540E78; Wed, 27 Apr 2022 17:54:57 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 8D36840691 for ; Wed, 27 Apr 2022 17:54:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651074895; x=1682610895; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=K5r8cqrz1pCsrkzjwTkI/8CgmXT+hpd2IIRW8P5TuYY=; b=FVjjZKZmu8+opigV0J94UqXy9LG+YVowD+oRUibtGu0tz1n/Knucxx9k PFqRvC3DRcNj/tny409fsORbkymQG4VZn/8hkrBSnp1Gs+hkuLP2dTxMg pVDKfcNN964I4C2uI+2zEEgsAEz/IpakXTw+hvHKAiED/P/grRTwuYPtd qPVJKeewV+3FQH39LPyIMdrcNPnPqFNYoFFCgL8VmwHR7ZZuWxDeOeM6j QqcVLbWM/SN9/Ymw1wDqMA7UL9ckteY0dg7MhV9A4zltxHCYMGCTHq5UZ iJKWM75wLwPCadce65ylhgPQLmsI8T78NUVOObKISotLVBUu230gfXwa5 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10330"; a="253354397" X-IronPort-AV: E=Sophos;i="5.90,293,1643702400"; d="scan'208";a="253354397" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2022 08:38:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,293,1643702400"; d="scan'208";a="617565707" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga008.fm.intel.com with ESMTP; 27 Apr 2022 08:38:49 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 27 Apr 2022 08:38:48 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 27 Apr 2022 08:38:48 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.49) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Wed, 27 Apr 2022 08:38:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F6WWruwB/gdCTyUKII5WBm/0om/ubuh7f+Kzfg3zuDfZ45L39e8VlZlbVTdcb8Qf0MMJjJeQMiceBXLP5ODqa2j2rvh8B1GufbDz5MDHIe5j09XwP98Uy0cwrevAUhPPB0iuNI1/JBSU4VXcVaVsColATgjmlumRxkSx4AgMVOi4U3mAX8stb6Ryf4yKJhQfOEVMoHGVKN4AoJkXpPFkT+8Z8eVtxKPA6dLvNQAVms5d9APtslXATXVISMkgznWC9F6WB0/HajH6moU/eF4LPLTUhZFQaxXgmOfxMGaERjrPPY8zhznYmJjbk+oQBENte0l+vsMgY3mXIo2ThA8HwA== 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=K5r8cqrz1pCsrkzjwTkI/8CgmXT+hpd2IIRW8P5TuYY=; b=k5i5grugeaMDzZbvj+gE11DiE+y/dR+3uaTHNt/QcDNshrMqdSnb3Z48TtR2cW5uGSa23vKSNGfc3+RQQxMnJ5sbqUFZuZBrJjEKdHGVqWkEnC+33cQoHyJTMPnFo/DaL0rtSXZAW2hKM1TKZ4Oj8iSSMg87s4dJRrkHpNdOeMcz7/chCbGgueUG973oPqN4nSTWs5m0K9pBh00O7kEEAuTIBesPHMTGamR9/oKQtSAxoa4B+hUwPURkV17gH5Czu2snIMDwID+NsxF0WIJp8ZqJuS8XfXs86QVSkdrWfdQeOsiJXpYQKW/xQx6VPPRm16AMl7a9I1DhFC3DsbdHCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by MN0PR11MB5964.namprd11.prod.outlook.com (2603:10b6:208:373::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Wed, 27 Apr 2022 15:38:17 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::787b:4b79:206d:9e0a]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::787b:4b79:206d:9e0a%4]) with mapi id 15.20.5186.021; Wed, 27 Apr 2022 15:38:17 +0000 From: "Zhang, Roy Fan" To: Akhil Goyal , "dev@dpdk.org" CC: "anoobj@marvell.com" , "jerinj@marvell.com" , "Gujjar, Abhinandan S" , "Jayatheerthan, Jay" , "Vangati, Narender" , "vfialko@marvell.com" Subject: RE: [PATCH v3 1/7] cryptodev: add APIs to get/set event metadata Thread-Topic: [PATCH v3 1/7] cryptodev: add APIs to get/set event metadata Thread-Index: AQHYVY1pxOAj44LwHEmEeyMYZcIpd60D7mbw Date: Wed, 27 Apr 2022 15:38:17 +0000 Message-ID: References: <20220418193325.368313-1-gakhil@marvell.com> <20220421143720.1583062-1-gakhil@marvell.com> <20220421143720.1583062-2-gakhil@marvell.com> In-Reply-To: <20220421143720.1583062-2-gakhil@marvell.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.401.20 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a3e27f57-56e2-476e-14cd-08da2863f31d x-ms-traffictypediagnostic: MN0PR11MB5964:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yyp7FruYcrPNvmvOxRrnCy8Ybp/5t2nPZuHXOpd3KxrhgaFH6TCHsyQb9KVTAGh1k/Sf8D9Y+x9vTTXpHIjH4bMQaT86QXff/TQ9s6WCvkP2qO1XCvqoqbpI0yQ07mRASwnJVHVxy5jLoC9NqRD+ah9OGcTrrqVIRVRaijPQHuYvQoQ+zGFbxXVrhqC+l3P0AlBYU9ArajvvgErMZNdf+UAnF4p7uoo6uIfLWe9b3Ltj3Y4f6XRfXHhzDMmAJgXKXav10VMtQ4O/J+sT0bge2cOY3sXwAZJe5X9U5L3+DYPbRWXYc2w2qXw3MT2nw+yoxPsws0odE0jDumalJOsSJc/zAw3AQBhRtWK1OqE8DgT4tpRj8PBS1dSKa5DevMmPDpVSifSuSrAvu5rbHIdASkAUKRYgN45JBQge2xl9vLGKK2E6UXtO2pLIZLTfcQNqPs6qHkeyII2Cmha/AZ51DjzpwKS4RSvGx15fvIJG6I1aMYOaAoRkmZe4NH/HgoF92+R1a0OPeuAOg/dEgOiJ+e1ITFpF7fTDY6QF8bS2LgbDL9pVDTw51TX7l8fs1F+zfKtgxDAttb6BXnLK1XXH3MJuk/Hwe1jWJL20/nyVIWOrTypbhHZyDR6bShKqxYDQI2pggu2+a04PcBu0Z24LskeZSXdgiMCB3djt0T4JVmCYvTXLa1VFH+8qrF/1Wyeuvz349FrrgxBRhGm7c/gQiw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(55016003)(8936002)(52536014)(71200400001)(4326008)(66946007)(8676002)(76116006)(2906002)(66476007)(64756008)(54906003)(7696005)(66556008)(110136005)(66446008)(6506007)(83380400001)(186003)(316002)(33656002)(38100700002)(53546011)(9686003)(26005)(82960400001)(508600001)(5660300002)(86362001)(38070700005)(122000001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?VxLfhrCJR78R1lcvKnmORzT/Z5AXDLOPY69LOTUotATfE9dxNzTs+hNG?= =?Windows-1252?Q?tZ0dopWcbJ9ETZhjxEwJ7UV+qhl26iD8HMv7cGuA8Ar1Q3YJ/u8Imgng?= =?Windows-1252?Q?Uhe0blzlnPN/wWXjLdtv8kf75dLmUpNX1d/oUawrPFqxSzTAxBoxmwgQ?= =?Windows-1252?Q?HJqnKIygiNlmPs+KHBY7zKqqfU+yNVYjJdPlQqtiI9r+b9onHpegwKWk?= =?Windows-1252?Q?RTRPUgjtkXNviyZZfZNeVpKdkJSj0b79/MhtFzLjn+iRlrqzoQKMiwsz?= =?Windows-1252?Q?lC6CzBtasDvapu7Lys5dXb7bqrz5TTai8/Vry1i/Q2Azc3EiB01UUjQe?= =?Windows-1252?Q?s2VEbEZ82movZQlmsdJB6grFpI/Gr25BPZEY0vyRXFka/AWirjRcFi6R?= =?Windows-1252?Q?azZkr5rvKEHWiE9PSjHToqNH0Vzro5pd0eHrUzruFFJNfZx+JfTluScd?= =?Windows-1252?Q?d/fJDU+d1LeyNw6jALQmlCZGCeqz+Qdr33uDrKHDokPPBAw8kJetX6M8?= =?Windows-1252?Q?Yxp7Ay/EkVhNvCPruVEXF3wY+AmMAZciRdpJzs828/a4v0Oj2s/jFxr/?= =?Windows-1252?Q?exw0bzM6UpaVp9kioxSeUvpzC9tIbGZZmAiPX46yumcifwdXdTxZxoRv?= =?Windows-1252?Q?bXEQNTpOmJyTAc0YVmsfjmit7soeGG9wWLvQvH5YYLduEFesHFkkSbE2?= =?Windows-1252?Q?4IimvNIg8pRpl6XwfL75Mca6uPWacn+zV/FOk3EVbsTlZc6RvXT98vt0?= =?Windows-1252?Q?ySw8hmfGFxKHPavox41OEGLSy9B0qns7c8d1staXAktTFcNfVc3nrkhb?= =?Windows-1252?Q?Xyy/8ggzbmtX0/IcgBE0OwOx0HC62FDoWTbcw2aZnwMZzmz6TOvJz+zw?= =?Windows-1252?Q?qLc6tEqhYO2wwnO0kcVDtqs8FEoSHxy+Gcxk+SeTAySkLp+oEKyEJWgq?= =?Windows-1252?Q?41NBuE0m2S++bl0zr4ZeD1Q3hb0s8Zxe2KD6BbxVqf0mqmHHHCr0REfi?= =?Windows-1252?Q?HT9DuPaFAZg3r9UMPGyLqeK+TOIJN+YWES6nLV7264tqu5kbNltqOloI?= =?Windows-1252?Q?GSFW1+bwgf5WKfZ93UY16GdzUluEtEY9luItiRCMRKBWTz4aJSI+cS+q?= =?Windows-1252?Q?jZs5b7HWkxHWXqpkrdsu5XgNWx1JNjK6kzB/kkDsTXyLnGO9ycUMcQ38?= =?Windows-1252?Q?nojz10vnLOmJEbg6K3FWVEovyaM3tyx5PtY05ZsvOeWSzCiH4xcxJJXe?= =?Windows-1252?Q?iKhH73aZlT1N9TokcYSaOPYi3ZXjjHtcomw4NMDjXU6OPtv6WpCcwYEy?= =?Windows-1252?Q?Rm25NPjDpyk282vEVIVdP2DqSHAP2fujivbyDOPM2/qzyyzEHnPO5TYQ?= =?Windows-1252?Q?OeaYy1fOP5nnCUdiScjLQqTr9EOl6X2v8JBSZYuNjfI+8OZlqQQpkTre?= =?Windows-1252?Q?ELjLDJQ3okmOtOdlcY13uE8MAjpukJpxhklJjY5rUMy9ueKxYOXmRHxZ?= =?Windows-1252?Q?SRdvob8IgXK4kl6MlRQog7ZKfxF9sQBSNYA7guD1TM7khiQQs2Kin9b9?= =?Windows-1252?Q?/56aonurYbXQlF/7FnCJeYdDICxBYKKc0MDuB1ZFR6BaWOed4AOyHVtG?= =?Windows-1252?Q?Tc4nuF4QiCpEUNKru2U64z4rc6pRyV2x0SDY5pKXYf34E/kozkgWXVP0?= =?Windows-1252?Q?fIpEpsx3T8qQL+ygPqyBd0SSTz049nz+MlbRVBRcMpCN9UA/aEshapDO?= =?Windows-1252?Q?R6ckhSx5qiuqPCKgI4R6nRgCyUAMRnnNSPqGVxvLQf6n5czoGGRNS1fx?= =?Windows-1252?Q?hjluVilZ+HathKiKFYhhqLE2ksyedC6C5l07PJGQ6oGIMHsLdTXEBCAq?= =?Windows-1252?Q?RwhOWevV49yH9Q=3D=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3e27f57-56e2-476e-14cd-08da2863f31d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2022 15:38:17.1676 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: req5AzW5jw93qDm/4P7zuByFOY80LehAHyaiKUBEdRu/wAGCB3qTgohJUz1dNbNayk4kL/niq6NEiHmYDg6sNA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB5964 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Akhil Goyal > Sent: Thursday, April 21, 2022 3:37 PM > To: dev@dpdk.org > Cc: anoobj@marvell.com; jerinj@marvell.com; Gujjar, Abhinandan S > ; Jayatheerthan, Jay > ; Vangati, Narender > ; vfialko@marvell.com; Akhil Goyal > > Subject: [PATCH v3 1/7] cryptodev: add APIs to get/set event metadata >=20 > From: Volodymyr Fialko >=20 > Currently, crypto session userdata is used to set event crypto > metadata from the application and the driver is dereferencing it > in driver which is not correct. User data is meant to be opaque > to the driver. > To support this, new API is added to get and set event crypto > metadata. The new API, rte_cryptodev_set_session_event_mdata, > allows setting event metadata in session private data which is > filled inside PMD using a new cryptodev op. This operation > can be performed on any of the PMD supported sessions > (sym/asym/security). > For SW abstraction of event crypto adapter to be used by > eventdev library, a new field is added in asymmetric crypto > session for now and for symmetric case, current implementation > of using userdata is used. Symmetric cases cannot be fixed now, > as it will be ABI breakage which will be resolved in DPDK 22.11. >=20 > Signed-off-by: Volodymyr Fialko > Signed-off-by: Akhil Goyal > --- Acked-by: Fan Zhang