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 47D66A0547; Wed, 27 Oct 2021 14:06:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 25C25410F7; Wed, 27 Oct 2021 14:06:31 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2073.outbound.protection.outlook.com [40.107.220.73]) by mails.dpdk.org (Postfix) with ESMTP id 34623407FF for ; Wed, 27 Oct 2021 14:06:29 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jINC2hgw5agcR9AYoOyto1zEdVcakS8IV8LmM3kRejKxygavDNJUerdpJMWBeo5MADk/DmdzRdJe5g7FU9mFQjk0b6GNqBvdO/k6iMNZDoT7c1JleqrW5ksepe7enaOU/Ird9jMXejyV6+qnwevbGG63P16WZ/0rgZgfi9AyMfMiXkY3ID5kGd+PCcJpBhqkHG9uWRmHFH6imVgy7+nL7OiA+oHHhqej/zzS6VX4inQ7wh21dbTYAkKwKvlZ+I9IjVPWlVJX4L9cZ0AgSGyWq+ilmV2vQ1XvlGLZMuJC1b0U7vJj2xqoGxhJFuf9bk1kqyMF4E/cu6Ab6TNLNJM8LQ== 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=I0ZO30X6yOpQoY0PAM0bO9qFZ7wRn6BnuLQv5zEIa+w=; b=i+Cnrn3aqnaM8DieyZLwFIy+AFdG25BDtL+zp7kZnNPyZlO7+LSi1Yt5vAaqSBNzHzKUNn0qPrWMvr++c/4dPwpkOvPyuvjBSt/HDB+eaB/KxesRBzO9NnZUsZdFVDX0FuhC4GI+iSpbZr7cbVucl71ihCVJSIT2GSeiuq8fG7fTHabNezYOpgO3/UUahvrVJCSC2fP+h5wVG5KTMXZDFWvLTBcEeWNpG4N7iHPTYiquIT+sE05hxdku+NEsDJJ/hbdui3QUAfIibG2dTfgzi81DoNOKL61Cq6s2x8u+CDOOYXv7eThRR3ayd6mpYhpW/szWMSsiFd1bKed7hiKrIg== 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=I0ZO30X6yOpQoY0PAM0bO9qFZ7wRn6BnuLQv5zEIa+w=; b=D7WWLqlYr0prNt/Ks+FAaTJYrGU2Pk19dJwBG5SMLeoZhHYCvgPXGmjdReB8jeXPGmsz/QDLkxeGPSSp4+xkTgiEMY4J/n+Cktwo4a2CLddf8aBXVJwEKEri8GY/sCPht/cQnVSIjcfsEcxZ8sfOqGXAzY2QMtpZ5Mlrx2ruoBqUocg187CQdUqbOdYyM/NdsIP/WFId9JmFWU97GzJ5UIZekkIJNZ9v/Y0zp/Vorol3DJTTfJIeygSrINs9Deb0VInPenA74kurF1xcxYTOneildqKAg6MkrTPMt1uO6uhB47tHhNqUzTbnp66vV0f2WZdraxo28T0sIDwzMqma4A== Received: from BN9PR12MB5305.namprd12.prod.outlook.com (2603:10b6:408:102::5) by BN9PR12MB5147.namprd12.prod.outlook.com (2603:10b6:408:118::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Wed, 27 Oct 2021 12:06:26 +0000 Received: from BN9PR12MB5305.namprd12.prod.outlook.com ([fe80::fc85:d607:d838:6785]) by BN9PR12MB5305.namprd12.prod.outlook.com ([fe80::fc85:d607:d838:6785%5]) with mapi id 15.20.4628.025; Wed, 27 Oct 2021 12:06:26 +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 v3] net/mlx5: optimize the device spawn time with representors Thread-Index: AQHXyx5l/Ynxv+PSgEertczmFnB73avmv5Cw Date: Wed, 27 Oct 2021 12:06:26 +0000 Message-ID: References: <20210930115217.35210-1-jiaweiw@nvidia.com> <20211027103510.919-1-jiaweiw@nvidia.com> In-Reply-To: <20211027103510.919-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: c5218307-7512-47ae-437a-08d99942340a x-ms-traffictypediagnostic: BN9PR12MB5147: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xzPMea1tewjIVEc/3ekaTzIFdyPBQeABXOMH5kTTKbMEdkxkuIEff2Zz3Q4jAeKMbFDZv9NPOw2skAHmxVi0FXF2+YXfhgg9/7LyprWzZAv+/524gBtfCKMD7nfHss0lyPm4YiQrvo9SqaoCiY/7e9l+bmTPY+iPctCpWFzoDhhZPTDbFCJZgRrrxf8KWWdB3KWDtFjgBKQTW8PXmH/WX9HCXYTQjc7VG01UkE02MQT3tFUMCZcR3YpTuaZQTMEI7kUPBozaCYZnEyxD7dSSWfZDufxlZfaLFv4UhBQi45zUxYN2rtzT/TX+kr7V81XsewImRkNRJj7nX87ImRsOqI4DYc23vWKOLdCiz0j102jTa8qocZf+gK5ze6yLz+FqKCW/KKpEdRid9jGzhFVZywXmzHHHlO6mrRq6ofreqM0lnrct4UBHW4bnSZKIlns0DpIlYY0E59a2zWGRuWIIb024ou1Trf/ZGEcWCz5eg0LJPpbLyiGiMvacY87YYxd1RKmPlQFJu9GebVRAApNaaOxq4WjOsjgA+HBxOiBvVVSszLFLl+sCjV2+rH+UbDM/gprYzhCe/2qD/XQ7aTSKyMvo6NCUGb5MOJitJsff19DeD2c8VL8h2qQPhPZhfqX5mGHkkf9C4DsxEgY37dUXNp0OxjvZzFnhSPNezQ9uMAV/dvHfrPpZVnNw15SxAXOvZMcTCnGD6/tS3M+UF55HYA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR12MB5305.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(66476007)(76116006)(66556008)(9686003)(38070700005)(66446008)(66946007)(110136005)(186003)(86362001)(26005)(122000001)(64756008)(316002)(71200400001)(38100700002)(33656002)(52536014)(6506007)(53546011)(83380400001)(8936002)(8676002)(5660300002)(508600001)(55016002)(2906002)(7696005)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?bTeblYwpxLbqe9V4mp/cjR1hYfJ+3sdX+C6/OK7pk9wsuWV9qbpVntYMjH88?= =?us-ascii?Q?6tpNHa2WVwPOBmTxAnjuyuna5XVswurIfZhiKH3kMKaA6M8OaRlI0kF9QoVb?= =?us-ascii?Q?ET+fwmyvvlhVtxEzzi7GaDaMUOF2ZPGDUQgUTwadsYmV5/Vgnb/LSi8eFp6N?= =?us-ascii?Q?F1vMY6TyfDWVOi8/oEXox2doOIXDfljNoM93M0+opt2kDemoXOpzerQqedD2?= =?us-ascii?Q?j9yQa+K+LZebo7EWOm49heVXYQfLrXKOaxocp7Hs69k2e5N5m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0zhyWt9U+S9QLmIaqGA/CWkLR6h+4qk/a?= =?us-ascii?Q?gISL8C2ru0D0UNLR6H4yHJCfU8PfKw+ErzM7CBxuVkuM8erml3uj5/9ii8kb?= =?us-ascii?Q?uzGYZGAVHZObtJCtTaZpd4hlmoyhzCP1NPiKsYa7dzezq7UcLnsrvFyheNgb?= =?us-ascii?Q?GFjaPLe8xlW01BUynHafLHDz6RSMSVawGjShGC67hFNT3oZibHnVDePkhTmw?= =?us-ascii?Q?ReotBbS2xK9S4KorvPl0X0JAiCJOCtyNSoxKIpHdBsE380A0N3ZDKmGYcddQ?= =?us-ascii?Q?bgstdD0GXmPO6hvFqFLRSk48QYsz0njs7HfgHdE8KfIn6RiKIg1i6qUdHklD?= =?us-ascii?Q?zurri0Ea9sVhjIFFIQ90zEWSNO5HHEpdaHPB2CxVYejpcw2rJROuzX3Mawse?= =?us-ascii?Q?lHmR5wgryI/OZibQoCKMBUzjP06baV8fo06EbvqV6Qm4FaD0WRwko9bUj34b?= =?us-ascii?Q?Th95TcvQzmtETwW50b9Zduk=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: BN9PR12MB5305.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5218307-7512-47ae-437a-08d99942340a X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Oct 2021 12:06:26.8559 (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: qeTf6bA0rzF7OTqAjtzxun304fHfH+mcaRzrbihYz4SBWhc/QTFBsSUc6xOeP9XrDBbUWtC/zuv81BqyE3ATbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5147 Subject: Re: [dpdk-dev] [PATCH v3] 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: Wednesday, October 27, 2021 1:35 PM > To: Slava Ovsiienko ; Matan Azrad > ; Ori Kam ; NBU-Contact-Thomas > Monjalon > Cc: dev@dpdk.org; Raslan Darawsheh > Subject: [PATCH v3] 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 > --- > v3: Rebase > v2: Fix the CI warning >=20 Removed v2 from next-net-mlx, And applied v3 to next-net-mlx, Kindest regards, Raslan Darawsheh