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 92493A0543; Fri, 12 Aug 2022 10:26:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3392940A7D; Fri, 12 Aug 2022 10:26:06 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 33D26406A2 for ; Fri, 12 Aug 2022 10:26:04 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27C46Ugj027988; Fri, 12 Aug 2022 01:25:56 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3hwfj0grxf-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 12 Aug 2022 01:25:55 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GA9EfwVmQdoZPTY2kAHYxqtvBsT93+ZuO505n5Tx9kobrkC4Tx1TrWiQmQ3eBTm8jmo5tifyJrbIQYGBMDCo+S0ADiHKDLmEot0biDblfXacyp1WnBp/4yhizaKdrQ9uUvk3UjoFu4MNAQo4QXLg1oa2ay1dmOFGdygEVsBLjidJDjSm98t5wlXLTW4I5gqBxhEmcqyklA40FujsDawoNZX99A3djzDlAZE/5p9ngVnA7YXmdazK5hKppXvwtg6l187N3X6Kze4y7aGEyqApoDzpWCND5tQgOIFh2BNr+IKcG+JCQWOXnNHRprp8KIYXUFgyGOS4sT2J1g1qvuJN3Q== 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=fVKixU+PJUxZWEI13n4ChWOYL58E3E39Je1ZSVu5Eb4=; b=jcg0wt8k6+PHBuis1Xdaz9S5jU0A1s90JdvPjJQczG7arUuEhNhtVYKVkCDBWejn65sRvUXRMUtUT6l7fU6JzG2tqsADhjeLbRUqxjJqmjNgW5By2pDGWjhoWY26cWG06JaYi3QQTaoiL7iFRqAAYjFDfVFk8Nl7AwinzCatXu115jWBH78LH2JG7NjgLE0TnaKr14Clbf6deH2PFaORloLSj4qk75rRAVYCZ8V6rwD60NixNzzdSjuWfAic6ZQI4f8B33/goYEQZtJoFM7SuNaBWBgfL4tdU0J2yAPnjDi/tXWoLCn5iVl14/UQ+S9zt30RndFQi0vsA2cjr8zIyA== 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=fVKixU+PJUxZWEI13n4ChWOYL58E3E39Je1ZSVu5Eb4=; b=fV+rAvMyqhTYG+YDQuMTymX2XoNpNVCmObfo5lTb/XU4ztu4n64oc8lNF1iDb1kVxfq09UprdqsrftMZ0MvZJV2uuvn8LKGvNzkCE77BcMMzwy7emt7j0IuZDQMi/2sfVZAWigLOplQ1JUfNZMbDxP8wc4fi8DCyUHV4v//a7ag= Received: from CO6PR18MB4484.namprd18.prod.outlook.com (2603:10b6:5:359::9) by SA1PR18MB4646.namprd18.prod.outlook.com (2603:10b6:806:1d5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.25; Fri, 12 Aug 2022 08:25:53 +0000 Received: from CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b0e9:25a1:1aea:4382]) by CO6PR18MB4484.namprd18.prod.outlook.com ([fe80::b0e9:25a1:1aea:4382%8]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 08:25:51 +0000 From: Akhil Goyal To: "Zhang, Roy Fan" , "Ji, Kai" , "dev@dpdk.org" CC: Anoob Joseph , "hemant.agrawal@nxp.com" , Chandubabu Namburu , Ruifeng Wang , "ajit.khaparde@broadcom.com" , Michael Shamis , Nagadheeraj Rottela , "matan@nvidia.com" , Jay Zhou Subject: RE: [EXT] [dpdk-dev v1] lib/cryptodev: multi-process IPC request handler Thread-Topic: [EXT] [dpdk-dev v1] lib/cryptodev: multi-process IPC request handler Thread-Index: AQHYoUSUm03CEnbBzEOYSpZ7tshzPq2RnMNAgA5x7wCABJ8ywIAGVFmAgAABziA= Date: Fri, 12 Aug 2022 08:25:51 +0000 Message-ID: References: <20220726230804.90036-1-kai.ji@intel.com> 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-office365-filtering-correlation-id: 68bcbdfb-fe1f-4378-d0fd-08da7c3c4499 x-ms-traffictypediagnostic: SA1PR18MB4646:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sDTRQM37oZKjEN8UUfZwyDOBwqA/RJtHsjyYdUh+ElRKMEIO11RMdMrYHb6vcOJqJPl2wYIR74EHMh9mCNr8Mi2paeDpSt7HnTPyB/SQ/bocBgW7/Tob00Dy1DhC44yzatiHpFbq9pHRNTtorvfrZtbgHXp09sAaiINJPmaB6voNJq4Fs6R32S8MVI02y1C4R9cfDy9Js2+jRS5Qa20yjc1JcgCqIriVyLHt++L1tA9HGK1QtWqKgxE35c2NT1a0RCBWsaCRliluwKCrBYnsib+1JsiyaGgtEhYe/RFZZelyLvEQUmavReRFLjyCg/eVQaTY9dTGPUr1zZP8m9yzTCrCW9rvNrXX2VRyQcSmYHt/7D+IARpc8O2MzMRzgTZEYVudHAjfyK/UkBJewUjrfl+L8xLExF8xXTL17NUKzGQDoafHvjZQ8kgEQShno3twCdTlizmagGVuD9wHJXv/GrGxtLh258+KJLORxUJQpn9Ra1dwJ3dhHgQ3kiZiCxDvOUkT10RSktxUr89vGA/RExPIDnYYt0nkcAAMs4Eq7VeJAouI/WGTFI5UWRBp9PE75Lg4G5aJBt9giZZKoJg2kf9zppRAbTNa0hQGe21TFnpuzxhilen8WBzUz6vXH6y26N/5BjJrWQ7shBmqScQkk61CGQaAmBtNp3wJpiv0TgqXSBuU7NEFcS3dkOIJtC4/gIHrOrsQ1wV9+aXLWFOs6N1c86fDN26IFl53y06ubiUv0SAWehfezgnpjZumu4jUeCCaXGFZbJfFvhWEXdk+B+CaaBOuYwDApWRZb2jQFdSuZTeNqK5bNvPNw6tv/zdx 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:(13230016)(4636009)(376002)(396003)(346002)(39860400002)(366004)(136003)(76116006)(66556008)(66476007)(64756008)(66446008)(4326008)(66946007)(38070700005)(8676002)(316002)(33656002)(110136005)(54906003)(71200400001)(86362001)(186003)(5660300002)(52536014)(83380400001)(7696005)(8936002)(6506007)(55236004)(41300700001)(2906002)(26005)(9686003)(38100700002)(122000001)(478600001)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?qxDrihf9YNZR63yV45ohv3SyfJfZ36JJ4yMFzj/9LwndEI1oCrMB8aPYkm5w?= =?us-ascii?Q?RSR73s18htXHNfVP9xMPMm/wURewsgHJUL8TB1QfoE7O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ECIkBaMUND8THw1pLlFoKFl1obR8O8hMp7fSdJ2a4LzDL?= =?us-ascii?Q?w7vVj9VbqFluEwbuZDTxTdVCi8t7mnu+mAogLrYIla6/zmSoX/qCfbiXCHgo?= =?us-ascii?Q?ffccH90kYAJ3I0H7pdmWwBlaKfAqSt/Ae294nKhgnx7JXKMjwvENmGhwEBlP?= =?us-ascii?Q?WSbGyNhzgzASVHwroPCupKmeuRvrKafsh6Sef+fcFXiyf12JFvgRzJseHm1R?= =?us-ascii?Q?YmZQAAvVD71CN/4AMFaRVRbOe1YL+/cW5muzz+EJiLpDwkWhnNHrL2SQV8pG?= =?us-ascii?Q?7LW3tpkPkkwMA4Vvkufnnj/BpW692vchcpaHO3qfS19tYam03DJIeXt8IN9N?= =?us-ascii?Q?RXb5/MtXzgikxeNXVpqwlg3PrQzTc3eqMNFsAIZdvu8hxZlgBF187cL/Zspx?= =?us-ascii?Q?NuXbb/RZPsOAz5NZFQ5TqUuGCpM2wCwHmm2CgZxhTUpM9BXjVWiTvlbWg99J?= =?us-ascii?Q?3eSM6xk4aXIthxaX2jzHWglAhwtidXeTlymkFl/5/MiC2+5BvT9MCEONdsD4?= =?us-ascii?Q?/yFzmo0/qMfnCOfJgOTCZKEtYWGtyhSptOfADzi1I3a/SlWePKSrQsSoJEuM?= =?us-ascii?Q?CAPNhWErvWf0jfd/47Jw9xa8eGj7SRtS9WlHQjn8?= 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: 68bcbdfb-fe1f-4378-d0fd-08da7c3c4499 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2022 08:25:51.6847 (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: EwL7LRyMp136jtBtDkL123tATtLcXl8g5evqX53SBHohQrb0wxogZ5csNtx/H0E63R6QcDwzm6SESN2Kil/S5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR18MB4646 X-Proofpoint-ORIG-GUID: odZVVtincUgUoMCBMG6c7FNHOCwFYED7 X-Proofpoint-GUID: odZVVtincUgUoMCBMG6c7FNHOCwFYED7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-12_06,2022-08-11_01,2022-06-22_01 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 > > > > Instead an "in_use" parameter can be added which can tell if sone other > > process is using it or not. > > And this in_use param also need not be exposed to user. It can be > > completely hidden in the PMD. > > User will get an error number(probably -EUSERS) indicating the queue pa= ir is > > already in use. >=20 > Great idea. That's what I am after too. So can I sum up the following cha= nge? >=20 > - each queue pair has a "in_use" param. I believe we can refine this a bi= t by > a "not_in_use", "in_use_by_primary" and "in_use_by_secondary" enum. This is specific to the PMD. Each PMD may have its own implementation. > - the secondary process may request to configure a queue pair by sending > message to primary > - as of requesting freeing a queue pair > - primary can free any queue pair. > - but for secondary to free a queue pair, we have a problem: > - we may allow secondary to request freeing the queue pair if it > is "in_use_by_secondary". But then there may be a security > issue as a secondary can free a queue pair used by different > secondary process. Is it not possible to save pid(inside PMD) of the requesting process in que= ue private data which is being configured? > - or we may not allow secondary process to request freeing > any queue pair, it is securer, but less flexible. >=20 >=20 > > > > Regards, > > Akhil >=20 > Regards, > Fan