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 35F9FA00C2; Thu, 6 Oct 2022 18:19:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1552D40E2D; Thu, 6 Oct 2022 18:19:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 3B2B340DDC for ; Thu, 6 Oct 2022 18:19:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665073196; x=1696609196; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=zA8ksMxiq9DNSsFqN1qV6lZeGMnrR72sZ4n7S3nU4U8=; b=VsXS8IaAli8lEt2Nnwk9IiFJ+Pre3bkCoq5eBPeNuH+Atg9FM/H7D4jW Qxz9xG4jijFQy/YZ7catTc+Z/1xDwyCW/RTRErHUZG5aZ9aus1fMW/37p wsrWEWfAJYQiW92o1xa176MF134MDbryb8FF93Z54UO+Gk2M/90DxxOHD nC3Fnp0D/pC07kfrFfVJjQJVHxqV05qsE1STKyItTY03hmyRL6C5LtXET 3s0sCmNmPnSum8kDCxGdnKewa69709kHfuy1Pt7PNk6BFOf2sDdm1eDXL xZefpzUp9zLivimXpSaKy2/7BmtmxLJqPsWgjS52++ghh8mArxFH4mm1S w==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="389783392" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="389783392" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 09:19:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="750203125" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="750203125" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga004.jf.intel.com with ESMTP; 06 Oct 2022 09:19:55 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 6 Oct 2022 09:19:54 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 6 Oct 2022 09:19:54 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Thu, 6 Oct 2022 09:19:54 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Thu, 6 Oct 2022 09:19:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cqxTTNWeWRh9C5JVVpsSroM2kfkh67DWcZJpxZw6I4qR/6dPxSQ2/mMq95I95a2AcibnF9Skh7HkCyYJQgZhp3RSp4wCe9pTlxOY0RmZlg6XSBPFv+A0dlyCYfcaomDaqKog1QPmnOuDz9yxj9sPNcErpIgmYFkzryhEcEmBNhmgs+W4rlGXMnRL+1QCQIrWJ2ezJL7A8ZpuPxKheNAW4pabvyBlQWf5NHlYmLdPg/5tlrbYxDxxCeUKzMx/rb7IAVlfPyVVKvp9Lh5QGbEDCYaalm1jCbm08VLWZheIrIVWnR9ZCvcAYs1vi/76K8YCOgsTaN07aC1QkEvXS+CdJQ== 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=zA8ksMxiq9DNSsFqN1qV6lZeGMnrR72sZ4n7S3nU4U8=; b=b88+8Hq0e2aQVBXSrtXLH7bt1VhrgS4+ttiOfh2RTU+3cwafpwOvxFVkfSbpQru2ZtWNNISAlejplw44rSAwrJPDxZsbgrdNC2Jq1DypcA36oaNQ56Dj0jDnrwUfGCuQXy8UciIMBuXpMVGsRkiacMHvD4QXip1JSrod1HPglHvVquCLu8UfgCxnji+7QtfUi/JzJZ1sPnV+WT+KmlaHGKLdn9e3WdsoCvD5J7dOI0T3jS/pCpjk+Wz9vOR/EDpZq8Y+ZQLbZRSJy17GxphHsVmFP5JpTe+82pcnqC7/CPLGBqoZ96Gw+dqoh9ifdrMQjhWZh9JMBpqx6ooNQ6VrLA== 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 MN2PR11MB3821.namprd11.prod.outlook.com (2603:10b6:208:f7::24) by DM4PR11MB5994.namprd11.prod.outlook.com (2603:10b6:8:5d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.28; Thu, 6 Oct 2022 16:19:51 +0000 Received: from MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::2012:6737:5f8:2dfe]) by MN2PR11MB3821.namprd11.prod.outlook.com ([fe80::2012:6737:5f8:2dfe%7]) with mapi id 15.20.5676.032; Thu, 6 Oct 2022 16:19:51 +0000 From: "Power, Ciara" To: "Ji, Kai" , "dev@dpdk.org" CC: "Ji, Kai" , Akhil Goyal , Fan Zhang , Ray Kinsella , "Burakov, Anatoly" Subject: RE: [dpdk-dev v4] lib/cryptodev: multi-process IPC request handler Thread-Topic: [dpdk-dev v4] lib/cryptodev: multi-process IPC request handler Thread-Index: AQHY2VwV5QAdx4Nt00+IWtGz95y6rK4Bi95g Date: Thu, 6 Oct 2022 16:19:51 +0000 Message-ID: References: <20221002224436.39571-1-kai.ji@intel.com> <20221006081646.81901-1-kai.ji@intel.com> In-Reply-To: <20221006081646.81901-1-kai.ji@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR11MB3821:EE_|DM4PR11MB5994:EE_ x-ms-office365-filtering-correlation-id: 16c09d6a-8c01-4964-77db-08daa7b6989a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WbU4ikSq6s4xefU9lmELiDgGQqdr4knWFLv8bndyywtST1ySDM5SC/R5FD61pSJT7Ksb+ZU/4NngePepOHiTuzzeOymfXrezmQK7XfSqawXDJMbugt1+fCZc0F7XBSMwzGsjINKk6rMk3+b4J+4iYH4jK1WYa0YecE27QjJJSSs4dJ9T9se6xO8Ld+Y6/wA/2kmeroiUloYEh8Ngz9n5DZQXxi844QQlobA1rD9n9bxZlCV0t10eO72izYjUaOYycO8CZxPr/kRdZ0whvtS5TSYGbIQjRIVdkrwGCkBgudF1kmWfj4GH2CGrSoJSSP9viZuOGlbj6/uz+cl9xrED47AUdobh5QfWNZqREoULlrtyhEk7TbBZOeUKxDToBsndmgP5B9gpbJ/Bjgf4UwaIV9FVRTD89FgQWs7Hr3Sr4AKlL7unXtOZe97jWvWc5/Lj5/T5h4fqQrwaLrPsybINUh+T3G2a1m1R6JU0YxNNfufgzWcYBmSKnozA9zHAdAHvApEkbSezSuhFThyGWG1K3DVRzZ3VpN/sjH6TT7n+Eg6pI5UQHk+e8OZK0hJyQBA9KOV+P5GhozKQdO5izbjGfC+c3uLGiCOeAt24TGnqfwzHksiFEibkewDKbOzfLXOYvHVkE7JB8lTc3YuPHSu71mcWZMUuNJh5u3gJUj6BIFnxty4Oxsl0bgGUxXX2b+gOJaArcFQnaS6gBgiiLCj3ylKXmVvx/SCUev5BUk1Mm9fg9iomzyRkuyEQ2UKUQyas5RNdZk3dGrwJzIuTPSw1NA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB3821.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199015)(38070700005)(71200400001)(66446008)(86362001)(82960400001)(38100700002)(122000001)(54906003)(55016003)(76116006)(66476007)(83380400001)(4326008)(64756008)(316002)(110136005)(478600001)(66556008)(8676002)(66946007)(2906002)(6506007)(8936002)(52536014)(26005)(53546011)(41300700001)(186003)(107886003)(5660300002)(9686003)(7696005)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?B+8fRqKAEwHK6JwgVV9Pl464ixACcikUbfC/br11LsGu9oNGf7S3KLROq7zc?= =?us-ascii?Q?kk5W0/tLFzBNCzSt9dx+GF8pmfw5OLPKOZqNmIxzDCT3sthoV1bjKbbxOBhh?= =?us-ascii?Q?UgJoU5A7fY7HkV0kyFcXo6Bwg71jwpo4Yk00YwVNPB8yZY6Mo1hqB2yHCmYu?= =?us-ascii?Q?BXuw0u9O0f3NgGoYX1L9+zHlnna2iuWG14K7kvK8bDlSKN1eRRCN56/YfWeL?= =?us-ascii?Q?w8PgGL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yANibAFaBmVdf9sk?= =?us-ascii?Q?6aBw26wBy1Jlqu0NnU0gHTxkJ64A5QWdVmXWGJAYNHjcLJzX3uJpymXQxIfD?= =?us-ascii?Q?/gIsEeqtCoHfbYQtBRPEvm1Jab3sTGY7Bz26PFTlJ7ZebW/NLDkGmEosOLeD?= =?us-ascii?Q?7W6BWfrVhMJSvQMnEQc2RjGmF+r5pxMjnVwpKW8Zw/py765FHv5ZrO35Aojp?= =?us-ascii?Q?wYF5rTQ60TOWbVgDH/2GH0DrDzEYUIiFBDd+XmYJJiD683qaoqtQi/3JWfCL?= =?us-ascii?Q?I8wexTpqxXuvYJtMf+eylqYxJSp+jZmwZrtl1purUNulvgBgeCBScYIquS80?= =?us-ascii?Q?vt0FNt/4oRX6dveWjvxcpbLvzHq1EUt6wEl/USSr9LlL/MlWku02Iiah4cas?= =?us-ascii?Q?+h2p9kQmv8B7TNAF13jCw+9x7vkSlKAQVrB8UoIF92l6lc9Bv1UJn/ACZFXI?= =?us-ascii?Q?ZMWKtyk/fa3VvqYegQ0V6apeOCg7MW5etvAYLJKs?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB3821.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16c09d6a-8c01-4964-77db-08daa7b6989a X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Oct 2022 16:19:51.1868 (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: SX4c5rDlM7EBO0MIfWCy4X+uUa63u7tTUo4RtuLq/4TIXZ8OvWYm1h+EXm9VPxoBfay9Pe4TrModntMjy3y6Fg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5994 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 Hi Kai, > -----Original Message----- > From: Kai Ji > Sent: Thursday 6 October 2022 09:17 > To: dev@dpdk.org > Cc: Ji, Kai ; Akhil Goyal ; Fan Zha= ng > ; Ray Kinsella ; Burakov, Anatoly > > Subject: [dpdk-dev v4] lib/cryptodev: multi-process IPC request handler >=20 > As some cryptode PMDs have multiprocess support, the secondary process > needs queue-pair to be configured by the primary process before to use. T= his > patch adds an IPC register function to help the primary process to regist= er IPC > action that allow secondary process to configure cryptodev queue-pair via= IPC > messages during the runtime. > After setup, a new "qp_in_used_pid" param stores the PID to provide the > ownership of the queue-pair so that only the PID matched queue-pair free > request is allowed in the future. >=20 > Signed-off-by: Kai Ji > --- > v4: > - release note update > - Doxygen comments update >=20 > v3: > - addin missing free function for qp_in_use_by_pid >=20 > v2: > - code rework [CP]=20 Some small v3 comments left to address, otherwise: Acked-by: Ciara Power