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 824CA45F20; Mon, 23 Dec 2024 11:11:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E394640A6B; Mon, 23 Dec 2024 11:11:43 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2076.outbound.protection.outlook.com [40.107.220.76]) by mails.dpdk.org (Postfix) with ESMTP id 31756402DC for ; Mon, 23 Dec 2024 11:11:39 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a1SRMwdgW8kEy/4YbuE1P7hreTCcIE9J/aS1zvuJJ9rRmrePAUAZ9eyK4lS22hESz6hpJZ4zcxKFm+ajYgZjxqztrlyD/Qpci2zf6tkDPfdHiBegyDyELfMwVSbE1bTGf95aXQtch1VTTO9q93+d1/Fg1BUmlNd3DW0CI4KN3A1OQMY2rOO+Q5Q/v8qRLZokfEoEjROdTSKYZl4WoqghjWKLL/hXzgM7TuoDv6v1DKjZD53MzeIxmqdCz7NcKYolIv91mKfZq76U2t6YneS5mPiu/wthlu9lQ8h4BkKbfeFNoismEAbUtpwmSn+SDB0mJt8EAzKBDNd2S5adKBurTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=UIpnRm/4YofVWDMWIT+WrG/rpg5aiAujIBkT0SxtnYY=; b=Fly8OvHVaEMXLyavnsWnkHGcAaAHbLWzx/r+irXptdSbwp3NJCyy0seI8BQKVF5x3RmR5wDZDQkxqo3dzB6r7Nbhks0eZ1T8248oSPgSroV9/ANMLc9tVEo1FCGkozepbXtDDpkdUl+vqpQOtSgIWijake0C43NAeXQ/VvkMFcuv1a/VJ0XUM2DBYL8CuzYGaA1hUxhy2K57Es+VkW9JHY8KUz7EKkic16lc05bPnLdbzCDSIwpZz5UmVuSfmRxd8R32mSvsH2Nn8X+IQ/vZq/Y2qtZ5eL4dFZosDmhCNZZuMYXIWUwTT0VYTXm8M3xdtaLl+EASf5wK/BQyisNWxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=UIpnRm/4YofVWDMWIT+WrG/rpg5aiAujIBkT0SxtnYY=; b=WGPLiHXjMZxn2ESpZJtlSuwKWkvY5o+iYHq+4C7+jtGXweuwD5G35ZuoScoF+H1ptKs3tUlzXWGM4ul0D9lbi45Y71qcPHV0BIcNBQQ+3BqBwvqwKn83upPbbFUg887dDPB7nUCLTX5JIAa92g6bp4dSb85lT7LkPdwlPWpeuFZNXnSF9XVbZyTx/TB0OUvv5irtk5AprEfhq/iiDh8oVgFsvLawohM4P2vfNPL7hLp7cGAYUNt2NhwdzBudHuSDOrDG40v08TdeNF6DZP3qjZ4JU0c7elqcdlJAXcmBsTfc5RJ0qPp1G6PflPaVp0HJbt6CoH0mvEds6GI+WQwpwQ== Received: from BL1P221CA0009.NAMP221.PROD.OUTLOOK.COM (2603:10b6:208:2c5::24) by BY5PR12MB4161.namprd12.prod.outlook.com (2603:10b6:a03:209::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.20; Mon, 23 Dec 2024 10:11:31 +0000 Received: from BN1PEPF0000468C.namprd05.prod.outlook.com (2603:10b6:208:2c5:cafe::51) by BL1P221CA0009.outlook.office365.com (2603:10b6:208:2c5::24) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8272.19 via Frontend Transport; Mon, 23 Dec 2024 10:11:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN1PEPF0000468C.mail.protection.outlook.com (10.167.243.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8293.12 via Frontend Transport; Mon, 23 Dec 2024 10:11:30 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 23 Dec 2024 02:11:19 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 23 Dec 2024 02:11:17 -0800 From: "Minggang Li(Gavin)" To: , , , CC: , Subject: [PATCH V1 0/7] port probe time optimization Date: Mon, 23 Dec 2024 12:10:54 +0200 Message-ID: <20241223101101.677449-1-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PEPF0000468C:EE_|BY5PR12MB4161:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ab04ce9-4395-4461-f807-08dd233a2bf7 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?pBwSR7qso7ZI571QpHXijRdjEYRFPAQQxPbBj3giIZRpigAnS001f1shshVW?= =?us-ascii?Q?zFOKKJnHQtkZTZwVyPjY8YY5T6548h0MH4PR32MV5n19VCZLJ4xPBdegfN7X?= =?us-ascii?Q?cQxQmqBBh9c0hNsCliNt2cznMrXxBe1gFo+y5ZQi5SXcp01FrkuMPmuMruXJ?= =?us-ascii?Q?wwoOWyU3X/FxSuj7n3OY4tQ9hTKvCre3F1XHO9Mb1dXnpzmD35FjHGBxWuAK?= =?us-ascii?Q?QWvsBi+kRJAkSc/pBmQCj884/NTNFVo3oKQJ+zg9rs4eUFejRMcfXYe/g8bR?= =?us-ascii?Q?vi0k2LI07G78q/q7qycFvMSRL452sv6XJcsVbKEWoIdD8gZmOi5EUmNCEI+t?= =?us-ascii?Q?h9kW+5stE1oXuQNiis3OJHlJAbVs9tqFoqjP4D6yr1Joa+nJu2QjlOVYUBdO?= =?us-ascii?Q?JUrgYvu6DOXhof70zs/PZJ1x1wy99pV6+LYDzf70hFCW6iTeQImxxQGz61zH?= =?us-ascii?Q?fF/YMP3vrb2MYXFugZKjj8zk8NxJgvZV2kHF83e2loBJMmnpMM7AzdK60HN6?= =?us-ascii?Q?o9V6BzG+Z5+Gt0CBILF5httdaVXHdQlndAeJzixtT1AQWwUCvzeWSJDZbOaP?= =?us-ascii?Q?TCHVIm5Ze3mIsuHkOmNKUUu3GzC5MlqPIl9POu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D?= X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Dec 2024 10:11:30.7193 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ab04ce9-4395-4461-f807-08dd233a2bf7 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN1PEPF0000468C.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4161 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 This patch series introduced a feature that the time to probe a VF/SF will be reduced greatly in large scale, eg hundreds of VF/SFs. This feature is controlled through the "probe_opt_en" device argument. Setting it to a non-zero value indicates the application will enable this functionality when probing a device. This feature relies on a feature of RDMA driver to be release in incoming upstream kernel 6.12 or the equivalent in OFED 24.10, ie. RDMA monitor. For further information on the devargs limitation, see "doc/guides/nics/mlx5.rst". Minggang Li(Gavin) (5): mailmap: update user name common/mlx5: fix Netlink socket leak common/mlx5: add RDMA monitor event awareness mlx5: use RDMA Netlink to update port information mlx5: add backward compatibility for RDMA monitor Rongwei Liu (2): net/mlx5: optimize device probing net/mlx5: add new devargs to control probe optimization .mailmap | 2 +- doc/guides/nics/mlx5.rst | 13 + doc/guides/rel_notes/release_24_11.rst | 14 + drivers/common/mlx5/linux/meson.build | 10 + drivers/common/mlx5/linux/mlx5_common_os.h | 6 + drivers/common/mlx5/linux/mlx5_nl.c | 262 ++++++++++++++++--- drivers/common/mlx5/linux/mlx5_nl.h | 36 ++- drivers/common/mlx5/mlx5_common.c | 20 ++ drivers/common/mlx5/mlx5_common.h | 15 ++ drivers/common/mlx5/version.map | 3 + drivers/common/mlx5/windows/mlx5_common_os.h | 5 + drivers/net/mlx5/linux/mlx5_ethdev_os.c | 136 ++++++++++ drivers/net/mlx5/linux/mlx5_os.c | 144 ++++++++-- drivers/net/mlx5/linux/mlx5_os.h | 6 - drivers/net/mlx5/mlx5.h | 3 + drivers/net/mlx5/windows/mlx5_os.h | 5 - 16 files changed, 605 insertions(+), 75 deletions(-) -- 2.34.1