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 15024A0547; Tue, 26 Oct 2021 14:40:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04F2C40E0F; Tue, 26 Oct 2021 14:40:22 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2084.outbound.protection.outlook.com [40.107.223.84]) by mails.dpdk.org (Postfix) with ESMTP id 8F650407FF for ; Tue, 26 Oct 2021 14:40:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hje1HAzEiHhkRf1Q3KRXzaNZlZ7oaAEby0CP+knp9+Hxkk4nPcIpbrtKvZye/v1haBg7H68GM8ulVPzdjgllGw3rklwpgfqqvvhlr2AsenRyALabj0uJzu6ysXyKo3IdIsJOo2ldItZ7CSpIvNibfuIw95OQY7rZdwhac3zwVZVyjkZ00mH6Gknz4o2b9Bn6OvT/6HhxLdOdW+aIVif+Kkj8eVzTepJRhye9soxW0dI6PIaA7lC5zF45Z8Hi3BQOvFVYrD2Mslhb/vTX8PdaghA36FslqsmZmSNmItM8vEGviAUaGuYhTLab7rB2P4LTr8m9uUApMLDBFhAgM3Z8dQ== 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=Km6K5iYIz8q9M84QbPpyykDD2jPpsoiOOyQ3T+sVGfY=; b=BUSoZYyFj1/LotqcwnTONHRWkiY6YeSFp3p/PfCjoAJBme3o6CB4rK3Qt/KrGrD8FUMqfxr239Ny0STKqratOXJGhBV/VzX1PzBHmluzN2y1ebibOz/7bDTWLJccTxNI5wjZXTSPr++3R9YgRVm3JrGE+Ou+Tuvx7sE+O2E40ZdN8g8OEJROewBnPUrJw+zKNdcAJspK5HIsb3YF+OMu6YiA7myKKzEFTP0+v63pfUxfrA3EczlRz7MuC6Y+ypYDSkivIFbp/XYuCp0V96lbKB2KXqunp2DtfyWmdy3Ga7TmS062RKe5MLy99LmIAc/TJmHD29v5BZN8SMcn2PCemA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Km6K5iYIz8q9M84QbPpyykDD2jPpsoiOOyQ3T+sVGfY=; b=arEe9oso32o1epdtbWxsUGY4/q3S19YJDGsEE85HD8J8EBi9/EKqWcSDt0xEaubbJLV/N7qPc23iaua08LyUtOTTPCVBgLTx0Dpa9uVaTSiHw2XHDWzsFCfOHapqOFFuYLWF2ILXaSYfOCVmjWLftidaaYRmGNcGXoWnRFS1/veHu2CDWx3Kp6OEhKyg1cJSgiyqSGxcDPw/DbyvbKokzlHDS0iE9bx3FJSeyYcpNcsLmAXP/wD/TntE9KPh5+xO3fIj2IRP5UhLxGiDebNbVAd1EygOjwMNQ1L7/lUZalP7yiCrIiOSmfyAQkBDmKx8mFN3DCFtidjYTkQgtnQM9g== Received: from DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) by DM4PR12MB5230.namprd12.prod.outlook.com (2603:10b6:5:399::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18; Tue, 26 Oct 2021 12:40:18 +0000 Received: from DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665]) by DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::a4bc:7da3:32e5:1665%9]) with mapi id 15.20.4628.020; Tue, 26 Oct 2021 12:40:18 +0000 From: Raslan Darawsheh To: "Jiawei(Jonny) Wang" , Slava Ovsiienko , Matan Azrad , Ori Kam , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] net/mlx5: optimize the device spawn time with representors Thread-Index: AQHXtfLgilVsBz3PG0+m8M7s8XpPv6vlYT1Q Date: Tue, 26 Oct 2021 12:40:18 +0000 Message-ID: References: <20210930115217.35210-1-jiaweiw@nvidia.com> <20210930120047.37448-1-jiaweiw@nvidia.com> In-Reply-To: <20210930120047.37448-1-jiaweiw@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bfa2fe6b-dbf0-4f74-1070-08d9987dc4b4 x-ms-traffictypediagnostic: DM4PR12MB5230: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr 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: akLs6HM2varmpDeDXAs9twlTmQdgOA+gX/UoACyO7HSY0jbpw6S0D9qSXrvqpAQ87qvg4Pcfx05dx5eIPm7R8Iphkuwd4NR5SL01feQbZ5niTYf04b0fNgiJaiSkFK12wwF2BD6LHZjr9QHavejCwQUc+yKs7e9Ea4hR8DkPloWDtvsY23uiHTpYYYPiw7N+bkn2t54ImSBRambX4nnPXR3eh9xqfLRajlj6hzq5dRSXCMTc1x2Qy2C9QaOvqD6buak98EBpXu0HPRLwyfCBSvLLICc7YdWNyzy1ZXNOdVyCew1KKJbtNrfxAukXk647ByeMJ23/+xbTLfPH4jWDYZxl9dAcXNJXL/Hmk5qAvK9w5P8lriEJNC8z6RGApU+y9DoPzp3PvGc7hrX2yHgWtU1tS/o/03WiBrp+zmAFWOjkd7UbrDwPq8Dv2abZL1IgIkCuDnlqXB4QFSph6z/4LU931AJPk4dynNmad6IturVOp1QlFjHhv8SXXnWxMr3uFvETV1/O6OG5GqyRYi5pqcWCIMDzXSM1hQTGCXp8rtXHyuv7iCqRma55iYtWA25Nt6XwoJGTX3ceOr424TljDcK78Nw1dZ4LYjpMZF0JVLCZhAwQnKb1j/BJiqS9gNntBVp3ju0agJVG1eGxmx8WBm46IcfI6H6Ulesmx5p8u6C9AhMfe5qyuomop2OsaXmgdGtnygoxPasnR7nyqlukag== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5312.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(5660300002)(186003)(316002)(71200400001)(66946007)(8936002)(8676002)(55016002)(64756008)(9686003)(66556008)(66446008)(52536014)(508600001)(26005)(4326008)(53546011)(6506007)(66476007)(7696005)(38070700005)(2906002)(33656002)(38100700002)(122000001)(110136005)(86362001)(83380400001)(76116006); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5NN/LiiUZpZ6QwuIdlYSgDji0m+mUkpKcqQWQIjC+ON63Lo6q9F/GR0/FsfZ?= =?us-ascii?Q?2Xu26EAKD/OaJLD0jlKK3zlH3W4E5nHhy78krYgqh+XxniNaFsQIAxPwIAK3?= =?us-ascii?Q?62IYTYjd3Q42Q2p6o4VQ0w+N6ka9k/JQEuGPWrh18ZZM+59/6aghLHDsEOCs?= =?us-ascii?Q?DgKnnsnnRdahNrUpXUY27WgRa1ImU3A6u2Knkw10y4wAqQYxHIYn67CYRL+F?= =?us-ascii?Q?N9wDNP0eiET4WR5B/FQiELUa/HpduKJ3a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2PYnGPuDpAtodaUPxPxIy5fYSTW7k0Coelhe7asdxvMkYSUPNWwspT5?= =?us-ascii?Q?OGYp9d5pNcek46R9+9FnFipqgb7HQuPqHtWP8n9tqKmb2bwnjk1gLtvQqP0H?= =?us-ascii?Q?4wwBp/GmCwq1n9iZJ3OllJTh602QYvBlNlgI/5Zhdt/dnzWQMouDWLFc7XED?= =?us-ascii?Q?WxhcMKvLwXSzAPnxD7x9g9nUgNVj0fFtXCYoXHoFw+kc95nWfNUpVgcnCDAM?= =?us-ascii?Q?5Dy+sUIFUld0HA5w4hiyMWpc2w8HpdM1UTmDEeDbXVeIXeXHq2i5BrRyUvZc?= =?us-ascii?Q?ZGrtpplU8wSpLwS5InBfAEZB+zMubmjcVBZCipiQQB/jeOQWDYFp3JE0APc7?= =?us-ascii?Q?GCOQKwElM+dKb3ozSx7X1S9AKpdsBoIL+wf9cyc8on7SIx66Lm+bVSrLWe9R?= =?us-ascii?Q?MauF98sudnnHjw+krKJidOywwZqH0pQ4P6QaBNW+orm0IvqugP/XKdHGwFkl?= =?us-ascii?Q?cQyjyW6JFKOjtKth65Ar90M=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5312.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfa2fe6b-dbf0-4f74-1070-08d9987dc4b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2021 12:40:18.6103 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 7VnAwADyer1VsG0PYMqdFmNyfI9Z4hRfEDuFVVDGemPCOMqsxnkITiLDeetcwYc17HSvvT4YgJtlEQgQw/FFqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5230 Subject: Re: [dpdk-dev] [PATCH v2] net/mlx5: optimize the device spawn time with representors 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, > -----Original Message----- > From: Jiawei(Jonny) Wang > Sent: Thursday, September 30, 2021 3:01 PM > To: Slava Ovsiienko ; Matan Azrad > ; Ori Kam ; NBU-Contact-Thomas > Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v2] net/mlx5: optimize the device spawn time with > representors >=20 > During the device spawn process, mlx5 PMD queried the available flow > priorities by calling mlx5_flow_discover_priorities, queried > if the DR drop action was supported on the root table by calling > the mlx5_flow_discover_dr_action_support routine, and queried the > availability of metadata register C by calling mlx5_flow_discover_mreg_c. >=20 > These functions created the test flows to get the supported fields, and > at the end destroyed the test flows. The test flows in the first two > functions was created on the root table. > If the device was spawned with multiple representors, these test flows > were created and destroyed on each representor as well. The above > operations took a significant amount of init time during the device spawn= . >=20 > This patch optimizes the device discover functions, if there is > the device with multiple representors (VF/SF) being spawned, > the priority and drop action and metadata register support check can be > done only ones and check results can be shared for all representors. >=20 > Signed-off-by: Jiawei Wang > Acked-by: Viacheslav Ovsiienko > --- > v2: Fix the CI warning >=20 > --- > drivers/net/mlx5/linux/mlx5_os.c | 33 +++++++++++++++++++++--------- > drivers/net/mlx5/mlx5.h | 10 ++++++--- > drivers/net/mlx5/mlx5_flow.c | 31 ++++++++++++++-------------- > drivers/net/mlx5/mlx5_flow_verbs.c | 4 ++-- > drivers/net/mlx5/windows/mlx5_os.c | 12 ++++++----- > 5 files changed, 54 insertions(+), 36 deletions(-) >=20 Patch rebased and applied to next-net-mlx, Kindest regards, Raslan Darawsheh