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 E534945BFD; Mon, 28 Oct 2024 10:19:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BC4A540678; Mon, 28 Oct 2024 10:19:01 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2078.outbound.protection.outlook.com [40.107.237.78]) by mails.dpdk.org (Postfix) with ESMTP id 52C2A4066C for ; Mon, 28 Oct 2024 10:19:00 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LR9mDqBX801yQHamnZZ+G70r+lDcFmmT+Uz0cfBW3ZkAVLEZi3Cyv0Wr/EsUDOCsUJyoDbcaTA91rTncguIcQZG3mQhjf4kl3X833CvSr7bh/uyqc6fqboRnoWUXVJ7hWUdHtJf5PHZ/J6UeVXV8GeOfnxdf0S3gGzYrSNHbf878B/G8FFpZxQZ7hIWw44l//ZT+1pKPC315ffP1qfRIy7ZRLMW3g2x1lcCCjKuTbo/zRz105CSqMleBC+Ra9ynXGIA52bUW5Oa8wf1q4QAVygxvhGyMeGQIBx3KHpMXoqnUCLcXWaSPUZP6jqBeoRrsA5IZA/nzk5Yr4nznqB+M9A== 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=S9tRihVKEsO2gUK8TKAL73mbswACZ8Omv/RIBV8LSUQ=; b=zHTbfkfdTBs88gQIit/Hbv6dcFhVWh5LNdy/3cYGjcTn5icOasP2ER83SsiNTz5Rb/akRreQ/7c7t22bQrCFPSqSaH6Papp2oLs4QSHRvIungqpHjHj84WArcB9ZnAMqlQBghAYBAH0A2BJXbdNjkFue6EXy1kpP0Y+gNeRGXBhpp9VOVKLyEMzfjiHykV86j8gO7rzwGJ/sKwQHVlrh4O0LvxECtQUE508CIwObZAFgiGl14/LOeFSw/2lVkyl+o4zGPFqC4vXW+pg9t9dH+kChc2PvFx6sikrjjwhI3d4Z1u5gZnL+KYvJSZt5Ebzkl4G6eiPURefdtWyrkK/ofw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=S9tRihVKEsO2gUK8TKAL73mbswACZ8Omv/RIBV8LSUQ=; b=FGnvU/VvrojewlPVyEzdQrYWDqk+OifOIwoL5Lq2EOKsEVRU8yh0eG5Do7RqZwiuesB3RQtWI0WVCZGQYimwY/wWCkIGdvjLcfZ/YMDlXAKxxtgIEfed4Z4ppu5ZCS4woET+xM/r2q27Zi51EaujGRTJtPVC9ERQ+/yAiNxCoVy6gLpQcZ4mXYuE98GrFK2cIXKVDe6Z/eCdVqwx1WTqq/5MKmWCAvS9dNTmYXpQ32g9eC6ceaFrI9X0ffk79hux8OcEJwBIruaA8M8lPZoOc5/jSSu4+BBWrdsVqBmhuTLweTz4A5udFN08WLzkyyNIBKhAcacPxptrZde98igXxQ== Received: from MW4PR04CA0249.namprd04.prod.outlook.com (2603:10b6:303:88::14) by CY8PR12MB7220.namprd12.prod.outlook.com (2603:10b6:930:58::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Mon, 28 Oct 2024 09:18:56 +0000 Received: from MWH0EPF000971E4.namprd02.prod.outlook.com (2603:10b6:303:88:cafe::9b) by MW4PR04CA0249.outlook.office365.com (2603:10b6:303:88::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.21 via Frontend Transport; Mon, 28 Oct 2024 09:18:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by MWH0EPF000971E4.mail.protection.outlook.com (10.167.243.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.16 via Frontend Transport; Mon, 28 Oct 2024 09:18:54 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 28 Oct 2024 02:18:41 -0700 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, 28 Oct 2024 02:18:38 -0700 From: "Minggang Li(Gavin)" To: , , , CC: , Subject: [PATCH V2 0/7] port probe time optimization Date: Mon, 28 Oct 2024 11:18:15 +0200 Message-ID: <20241028091822.860660-1-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241016083818.662020-8-gavinl@nvidia.com> References: <20241016083818.662020-8-gavinl@nvidia.com> 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: MWH0EPF000971E4:EE_|CY8PR12MB7220:EE_ X-MS-Office365-Filtering-Correlation-Id: 207184cf-2549-41a5-bc14-08dcf7318b9f 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|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?hBiI15Q2CBuh549/Oht/riCCoC5iWQvFCMUPpZpoDdn0nc+QBM2F4/Hp7mPj?= =?us-ascii?Q?d4/IsYUSGyqCtpROAfUB6xhxypKeM9AQc8ZE6Yax0YCibYzIIxmNHXLermD/?= =?us-ascii?Q?MhqhTPyQdA1otfbst2BPzCF3U9jTys/lObkED2n5jjTlQD3CdpHfw/QfZmzt?= =?us-ascii?Q?R6dgSGYORRodS7XfTWF3l+77evoX0P/XbJ2/1oIGrRQv1U3e40+kI1Wv+7aq?= =?us-ascii?Q?de1I8gTOFA6uQkXX618tSFLViadmhBdhfPvT4ZaCSsVxSwksWMhuxh7hrgil?= =?us-ascii?Q?WKdIAbNTBHLHHXh4AX60TQjw/cdzDKrRpoX0Ar0mmlitzfPVh4p3M4L6CSJ+?= =?us-ascii?Q?67P0cKUwkrZkZDHhmTE2vrQ5iP2CEbR+sTyNj+aaI8cPTvB2KF4xF7g7Y5O6?= =?us-ascii?Q?XCYm9FgSTuiXb1FVbFpoGXU3404HvbUw8j43zVB4nwpOnvtdwHtVBM7mh45d?= =?us-ascii?Q?hq0UaijRmmX+M8EM88etBBnrUAAIi6gfk/oUdmLsdHgyjFFN/NOSG5PuisHz?= =?us-ascii?Q?E21Uw6AToNnvycWWnaiZ2Xn9s9PwMtKFjniODAj9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.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 09:18:54.6789 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 207184cf-2549-41a5-bc14-08dcf7318b9f 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E4.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7220 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.13 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 --- 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