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 C815845B50; Wed, 16 Oct 2024 10:38:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2EF040144; Wed, 16 Oct 2024 10:38:51 +0200 (CEST) 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 54D70400D6 for ; Wed, 16 Oct 2024 10:38:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e+SaWSpiTX87hu+OTvd8SvVbbZQoq77CG2hgSOuRzQkUPwuEAUr8APVZWoEh2dEjiRDdehhbehZQy/AwJdA9PQHZXAeLRCFiGRjvaqU0T4aQGD3VDyREhvrC2ApAShFU+etDz3IC6mXIPM9HDHYJgufIZkfWDMc504zVxKMqCr4S77I3apFCn3zWY5XFNjMVGzgQHPSiZRIsJVZUc8mQK7k/7aoKVW8G6rJ2jV4Glefk9dOc6Oon3sgxXcerNv9Hb5wYC6RBSKUNtgZqjzj3v3nfJ1u49Bjg1eo6o2ZtujSeoA3dwNeT2LyRye1/u5zBAe38DehGi7tROjOmXBZeUg== 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=mB+hUO77kHDYXIVZ5tYupGUp1M8hVej1KlZrtqXZFJU=; b=ke8mAYaIGjSUz3OxPMBnaG/DxlZnVc7Net0FZKnVva/p0+6fkWOp1rmmL61vkHrZSzT/EhAEFx/5mkThs9En8HAZKdnfrm1umwfahZA5+YJU5aG6XaVhXCwhh5w3/GxaFADHlx/jWo5+AX+WnZCpIRswAbbEGtaLAaYokGm1uGGpZFkBI0Y75y5lOPrqSyQ52oBSvvjf+Nxozy8gpTEyUIa+0XzzlXffaRW2p48qZ1m0spYJkBPH4XxFyw/hXvQddtGEaTCAF9tUx+6NVouVrP9Oiq4e21s8qbwsTss4oBBpXjo47OeVl2PIu6buKql4QogPx0Yd48+C6vRml9H5kw== 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=mB+hUO77kHDYXIVZ5tYupGUp1M8hVej1KlZrtqXZFJU=; b=Y6vlex3iuN1K0miKN5hn9AlvwDV5kUifvcwTGSGVmCsfhmFLtc62p9yDDVfMhMgan3cWdWh/9U/OhZ8xDl0hQZc3whVvT53ZMGro65K4X0HTLwqtDTC7EkHeRJwO92wl3ao7jdzKOmpiE5Ynw8XmhFjSxZmHZNP5PozXPYvttLSuhSaCqDKI6IkQN09P4TnBJCqazdZj8VaCgKBDK/GAHE5sn3uLH7SQ+EGX/t9xSwlnTTMjMpLMZwO7mAqBVz461XaGZPUk/PNH3Xz4+K8oVKwEmiDOWrKpvg+aAaK/J7LnQ/trGI0+RQdiheqpBQieIKzPQi6pIoWCcmDaWqXdow== Received: from MW3PR06CA0017.namprd06.prod.outlook.com (2603:10b6:303:2a::22) by DM6PR12MB4339.namprd12.prod.outlook.com (2603:10b6:5:2af::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17; Wed, 16 Oct 2024 08:38:47 +0000 Received: from MWH0EPF000989EB.namprd02.prod.outlook.com (2603:10b6:303:2a:cafe::5d) by MW3PR06CA0017.outlook.office365.com (2603:10b6:303:2a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18 via Frontend Transport; Wed, 16 Oct 2024 08:38:46 +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 MWH0EPF000989EB.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.17 via Frontend Transport; Wed, 16 Oct 2024 08:38:46 +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; Wed, 16 Oct 2024 01:38:37 -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; Wed, 16 Oct 2024 01:38:35 -0700 From: "Minggang Li(Gavin)" To: , , , CC: , Subject: [PATCH V1 0/7] port probe time optimization Date: Wed, 16 Oct 2024 11:38:11 +0300 Message-ID: <20241016083818.662020-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.231.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: MWH0EPF000989EB:EE_|DM6PR12MB4339:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b54fbce-0176-46e4-2c69-08dcedbdf342 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|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?c+iTKyDVvXrKJ0WzuyCIERa7aS3GevIaDtVAvlt6bl9EV2rmr1fDxxynI5x6?= =?us-ascii?Q?Xpnm2B0LkUHgET+CBoRu+/oN63ccK5nOpfOEmyyVcqXb8nnO2Qa7U2A+ZU8d?= =?us-ascii?Q?tkieM9kjQY5eGYJ2iXYIy46JYBcRa1IM9rEvH0iDvUWzurUFbuUIUCitShWB?= =?us-ascii?Q?GS64Oq+7Rrj2ajhkoSuCCplQe0I1q6Au7IwqtM90QtVtMxyRTj9BFLNDb14n?= =?us-ascii?Q?Cz+4a7duGNYScWUAhxTSs3kpXhAhBI3tFOsgWMzGz80qqifLagMbUcPkwgvh?= =?us-ascii?Q?dw2LeH26SiRE75igLEEzzi6ucVpjbJDshHwmmnOOeX4J0Pg7ieqjcaOrNT2e?= =?us-ascii?Q?9TL1eA6g1f4ci8IaDysO1bSN9CWLJiNSjFK12i73yYmsVZqGjPaoOrVO9Z6Z?= =?us-ascii?Q?/1Q4vb5o5jZb+OScn61YzF94y6QsSNwhL6Ga4pvSApcCijWHFlVEFF6aO/Dl?= =?us-ascii?Q?MQBk2Xz/Cy/jxjFQlx5bM7jX9/pICp/82MSH50gWZHpKm/mITKl219rFVKKt?= =?us-ascii?Q?OieZFaSJIg/KMwObiUBGXlo1lJ2RO5hd/Vl/umGZSLbehAM5oCVd2oCapQJ6?= =?us-ascii?Q?ekuoaTlwRrUnVAUGLKw17IBwfrVN39dBuzjiTu0vtIQAWiwinoCf9mbB4+6l?= =?us-ascii?Q?UjPIlr6t0Y6g2HAt6DXcKd25XG+8RcVzftJSYceUEP2JRJQC2gDe7NckXOPO?= =?us-ascii?Q?+3ESp9qWkL99SgFySxmeBrMx91dECfREypVtw/oNGoQmUnRZMroWTovZCiQG?= =?us-ascii?Q?AiVHKMsStdzTx4z9JB+2BTWW006npqVbHME0a4LukLvJMQTcHjX0R/L9V2nn?= =?us-ascii?Q?HA48E+i+PY9gUuJIG0N/r5ydft5gYFdRaUeRSDhfaZP9ZfX1gzipupA0Kjyp?= =?us-ascii?Q?TjMZH1oF4uAIDC5k7yI1n7mqEbHfc4sSLBrfeicTa1WWF+18c1v5oqsHC1JF?= =?us-ascii?Q?r1k7NOFhIrUgO2F+coutlLzf7n/VxKdgxjVbQyUdt4sIsNcjcFTJr0dsYPgS?= =?us-ascii?Q?c6kTuFHYuw03Yhtie/S9HocmbY2laRN2An2GIAMc1FoMTjdD+HUjPk9WUu3p?= =?us-ascii?Q?PD9qaFD1bA7u6xtzoZN8JBwzeceMB94fc3wVA5jRVtNrMZegqUEcW78A6V6Z?= =?us-ascii?Q?LWpROddnsPNoyp8yWNlgR62DdoCRs8WFa4NMbAG5fumTrkIVSRFh3VgLFyK/?= =?us-ascii?Q?QUCwtxljo2F2WVSlkU9mpfNiFTwV0+rcko7EKGB+RySty9iPRWjRu2MEsP2j?= =?us-ascii?Q?x6nzdP13CnUuO77S13cY/CzgYyWNyIdg5WTBslgZxZzwLgeHvOBEKGcp2V/E?= =?us-ascii?Q?TV07DlYKX6roKl4km0VIcWXo+jCUVo4tdXREw/Rpqt6OLSBiRm4SR5RUt8I3?= =?us-ascii?Q?WpuhSJsS6I76coh8P99Krx7jJTYk?= 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)(36860700013)(376014)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2024 08:38:46.4632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1b54fbce-0176-46e4-2c69-08dcedbdf342 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: MWH0EPF000989EB.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4339 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 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 + 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 - 15 files changed, 591 insertions(+), 75 deletions(-) -- 2.34.1