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 64A2345B4C; Tue, 29 Oct 2024 15:32:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B74842E8A; Tue, 29 Oct 2024 15:32:18 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2046.outbound.protection.outlook.com [40.107.102.46]) by mails.dpdk.org (Postfix) with ESMTP id 68CE342E6F for ; Tue, 29 Oct 2024 15:32:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HF8AW5kLQ/7yNNPAedSj3BP0a8QSQZfz01KOn56WXKXokzInjVC5+FwSiFlxv0wSmV+ejXfjK56guClhIkm+CoeDT/5hGcS9f+z5c9G6XOmEZRV0Q5IwXO7MBPnsCjft6cMuqyDYcUbChJkJ12uELpYJTvx6KuUR3g98gT8taxauZzbup3I1Ao+KgeosD5sSooLnzMVBaLUhkjNsHZUmg29UvhRpF+NYbTVib5EqhbcDfO/k780E3eP3rCb+83uRFjuIHHyFiVsZ/dwH177agJtOZstHeQUmhYYMULHO8hvhy4ZEjPzWICLFMOSHz77G8MVq7V6VFCPpJl9SP9oCxQ== 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=BUo+y5/WLpSQbZ4BfrltIXPoV92kWirV52XUB7MFSaI=; b=vUWZB/Jx1felV/E36BXVwuv+rWiwp6MVpvFrYyKq7ii8gk/eBTMVF5SlTbT3fqgDTZeWuJo2J7SbPf1GhZDmUrmNFEbEemt4+BukLEziCCG6ws8BqtQAni1V6D3V6SAdP83mp1Z0Byg8Da81zqvPUMcbAnasgaK4NUSiVvzesVxZpC7wAE8llde3VTs4/3jjw6n8X6ocB/aZ/N4sikPOIHEYIR94m9ro/iYtHcxbQ8p4P9y5r9SRVJNguGjWY3tLmBhBUJcmpfhH6BS052zF81d8Deu3nd4YrRIZYxujJZyXruZds9VP1wFvdeiutmz4BCx+LqoJmhK7gi8+gGMMSQ== 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=BUo+y5/WLpSQbZ4BfrltIXPoV92kWirV52XUB7MFSaI=; b=Z0ZDin8qzuTONoEVVAf34N1G4KwS5YCoOrTtupw7XiNVKucPs5YQ7sKuO3DZrUgsS+Cdt3DoHXIcbGQ9ks3UU0baZtMnlswaYRRe21tYbSo0wc1xSY8wrfectJ9sZ/yyVfXgi/oc4w8zS0fqTYWkoVKz7zd1+p0H+MNIkAPsGAi1yUDCJe+zWwrj1gKUEPxGXxv8kJ0Ft/LrQhjT4/Zt1iV+6pj1oMSFEBXb16WCHGlgcKwtaqwuvLbWb/65lhtCthnAvzTfsvqpxdvz8nda6es/NR6Ci5nvLf1URPd9xQWS47yfnxdOd14VmKqMFDfrrdEDFAExa4BTChT4p8jU5w== Received: from BN0PR04CA0104.namprd04.prod.outlook.com (2603:10b6:408:ec::19) by CH2PR12MB4166.namprd12.prod.outlook.com (2603:10b6:610:78::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.32; Tue, 29 Oct 2024 14:32:11 +0000 Received: from BN3PEPF0000B06E.namprd21.prod.outlook.com (2603:10b6:408:ec:cafe::23) by BN0PR04CA0104.outlook.office365.com (2603:10b6:408:ec::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.29 via Frontend Transport; Tue, 29 Oct 2024 14:32:10 +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 BN3PEPF0000B06E.mail.protection.outlook.com (10.167.243.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.0 via Frontend Transport; Tue, 29 Oct 2024 14:32:10 +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; Tue, 29 Oct 2024 07:31:33 -0700 Received: from nvidia.com (10.126.231.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; Tue, 29 Oct 2024 07:31:31 -0700 From: "Minggang Li(Gavin)" To: , , , CC: , Subject: [PATCH V3 0/7] port probe time optimization Date: Tue, 29 Oct 2024 16:31:11 +0200 Message-ID: <20241029143118.875214-1-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241029134256.874767-8-gavinl@nvidia.com> References: <20241029134256.874767-8-gavinl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B06E:EE_|CH2PR12MB4166:EE_ X-MS-Office365-Filtering-Correlation-Id: 71e268d4-bc41-4458-e0f2-08dcf826794d 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|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?xls3Qi6LzG3+LiMchiiGXPzNMKccdgn/QmBseXGGYBT/nmDzE2MlB6TREhOk?= =?us-ascii?Q?TRi2/Scd8GoS9FrasauWOb2lVfRhgP8vZ/71zPWfHDfMh9DabyullBZyleU4?= =?us-ascii?Q?ucBsGGg5QcC7CsJ/euweyyu5TxmAmE1EwvOXdjxTRt0IN7ATylIkNa8ME7C2?= =?us-ascii?Q?0Z/cwHVk+PZfeGed8tMhP26r+3iqAtiAQdacHdY1aii3d7uZggkNOU9NPsp4?= =?us-ascii?Q?wCWtOeMoBzxWVwNI/9gux5ri2CaSWRpDvsPYuZJFOX0Skg6LWE4AoCvSA2FD?= =?us-ascii?Q?TQJva2w2XpqWKtu2rjOpteIXCbFsKUotjbW+nON4KymmOIYHZl7/Dag6CjsJ?= =?us-ascii?Q?Zw0d5iWcGcFw0lhm/zFRzpgkQVxJmDe7g3IJaNOZ9cOUF0MwRBxtNBGmpUIN?= =?us-ascii?Q?siUGXGSEdprQiYBQLAG9BjmIbLc3srVo6FG6231SXe2vP0dkRfUX4foLuYkQ?= =?us-ascii?Q?LHT70a7Iol0bMY3KlmzDc+Ylt/rIwGvw1nQg1GBmLLEgNaa7AHS5dJjiorTr?= =?us-ascii?Q?B4kxofTzgtk14nCF+CHldD0sntz0oDqzZxG/cKGaN1eGsGTtSfmwXyvJCS3E?= =?us-ascii?Q?mbUhgvK22MRXIFhHYjY5Kc9Zo+xoG73BZLlHCIlOvKuESU/4Amct0pSoATe5?= =?us-ascii?Q?UChk9mBeF+5pxYxqrO2UfI7A/zTcv3EB9VqsRCfKvTJkdQnokq2Oc/xCBTOd?= =?us-ascii?Q?B6osGlK96vff91H3OUGg3JPIrxzu8t5U97vwAJfPIYgQY88acZYpsN3ORGne?= =?us-ascii?Q?AImHoo+7kOOxXLzm05HplZzZWZAJLYFEj4+mQJ0XOlAVYAvX3+7MxjbDX2Tw?= =?us-ascii?Q?YGurVv8GZ+uTWasQa/pILtHlmkptvxbl7n5GyTYwmP+XERLWENQViw2mYjn1?= =?us-ascii?Q?4tzRaqilrSkTtbTQYBeelypxKwa+duIWuyMHWVKwYMsySFFsWq9kyx9806B0?= =?us-ascii?Q?UmVb6AxhZs9yaZtxE1H5j2B0JTXl0n2l0JEEiHb9HIva0yEPKmiKAhGaB7U8?= =?us-ascii?Q?Qa+zKAudzQHdIVOacRXGwqLIhSkaIJCLLFMHAmGl8ZTX8aYUm1EHWU48xKTN?= =?us-ascii?Q?vlEGs11Cu/5Efa4bEOpBjVeGgd4aqc91ePdWUfORdGQe8pwbY79bcOkcGae+?= =?us-ascii?Q?JYf6M9ChZSlIAI8/nPrAb7o0uUvyIM8d+hpvgLBDKBbz3H4hXu0w/1A41WgL?= =?us-ascii?Q?6N9uOx4R3YvtCVf6t+evrgIsOTSeUC2krHJ7bIFQHFQSQh7QV0HOczVKkf1S?= =?us-ascii?Q?ClrVLm1RXVbejTX9Zd2J10gzVX5QWvr9JKLZOvIVO7Zu+GRjypAVmVIRa/d6?= =?us-ascii?Q?e7xJUKOyCctmcd5XNJnaERiZkVkiOB613M+hKc2zQgPcE0vsImZK/WIGozs5?= =?us-ascii?Q?6ipjZOXwQ5X/YllY9lN6Rwzyz/22tJ60te+8HxuDYJqiUBvNgw=3D=3D?= 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)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 14:32:10.5641 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 71e268d4-bc41-4458-e0f2-08dcf826794d 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: BN3PEPF0000B06E.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4166 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 --- changelog: v1->v2 - add feature doc and upstream kernel dependency in release notes v2->v3 - revise release notes v3->v4 - change kernel dependency to 6.12 --- 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