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 033F043B74 for ; Thu, 7 Mar 2024 07:14:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EB817402F2; Thu, 7 Mar 2024 07:14:25 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2053.outbound.protection.outlook.com [40.107.244.53]) by mails.dpdk.org (Postfix) with ESMTP id 158D1402EA; Thu, 7 Mar 2024 07:14:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jVOQEWpi7yMqlI9qF0XYE/d6U93rQtmXO9p3QbZpI+zCAbsMG/Qmvlck3bt46G1e1OO0aT9wDgU0PwbxXHHeQGG2VLiE9q11tvhpoEPZxJH0snNdeAXCqR630NzA9XRvQv3YeLtnch8kR1iGnY6+NLR0dUZICKp/FJ74exOC0gMdlfuLuhrmp9q618msV/xpMCZ+DCZD7aP5KxU+xXILUIRraqVoYkJPe9RZc1dP8uHKPUexZZ9keDikc/A0seMsIdpX1vIcWweHrN9D3VGH5K8zDJlFlmvC4qTBey5DDO5d/mb8gvqRAqUzkori+KHNlqqF+an0kcAnS1YwTDPm6Q== 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=dzbGqlgzAFKMezj5J+/Bd8jqB/osKBk6k3CO7Z5PBfc=; b=cnh4DnzbebcklrlkO3Z48HRWAiBaSkMTRPuyCAvYRBcvFihLnb9udflBghaWAlzWL8tXyH44GDY/eQ9Uv5neL8LqvoivqvsX/Thu24Fk0w1q+4Yhr3rrmrwGQE7ulPapFpfGGFq/M7gnYQGARA4zPLY+wnO0OwVAuuT6t6Hma+Zwu6UQXOyaCj9dCYPyRfXX0DXktSOmvOpWkaNnThu6XgARLw0amzhkMdO98zgZ2GpYuDOEN6VHTTiMH58D+hgkiCZWC840PwGCUNe/tw3cEEEMb3Si70zSAbb6k0GilDdAwT6kfmy8vM9Br7RJ6AwKvtWLdTYF4LQp3pVn0p1D8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org 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=dzbGqlgzAFKMezj5J+/Bd8jqB/osKBk6k3CO7Z5PBfc=; b=kPVW5l1yoCPJFx4VaRpmNdMvZuj4EC1pn6sXR6iADtCtH5CCyyS8N3sUzNTse/pKh2e99zgzL1eOu0w0Cnko+o0Vb1mRVnQPF49tRhcIvVHJseFHPjPhWXuw4hmMAQtJp+2N/2wvXNuEB8Mj0zwW30UydN9IxycRgp3uHqXKvZqGbOwi0sWvXvOJRD6BJOnvAAeoChwmJIw5rIzE04OZCUYDKxKmxHNZBoml8nWJYR/nO3s3HUt8Wo/Be7LLDp4rESrSSOS1TGoWa8j0lTOsd/C8cdnfOoT+YwKoayulrLVsVUrjqx5pRmmjlBX3s0c0jM+rR3wZagkXYgankAxKvQ== Received: from SN4PR0501CA0123.namprd05.prod.outlook.com (2603:10b6:803:42::40) by DM6PR12MB4041.namprd12.prod.outlook.com (2603:10b6:5:210::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.26; Thu, 7 Mar 2024 06:14:21 +0000 Received: from SN1PEPF0002636C.namprd02.prod.outlook.com (2603:10b6:803:42:cafe::a2) by SN4PR0501CA0123.outlook.office365.com (2603:10b6:803:42::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.6 via Frontend Transport; Thu, 7 Mar 2024 06:14:21 +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 SN1PEPF0002636C.mail.protection.outlook.com (10.167.241.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Thu, 7 Mar 2024 06:14:20 +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.986.41; Wed, 6 Mar 2024 22:14:03 -0800 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.1258.12; Wed, 6 Mar 2024 22:14:00 -0800 From: Bing Zhao To: , , CC: , , , , Eli Britstein , , Subject: [PATCH] net/mlx5: prevent ioctl failure log from flood Date: Thu, 7 Mar 2024 08:13:45 +0200 Message-ID: <20240307061345.310225-1-bingz@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: 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: SN1PEPF0002636C:EE_|DM6PR12MB4041:EE_ X-MS-Office365-Filtering-Correlation-Id: a84c6067-51c9-4694-b7c0-08dc3e6dd423 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DhnyF/hs9HDN6nnEfoX/MQSrcUOTyYxS6eB0+dnt9kKkHB3kmoqGwS7h2A7SPh6iI7uiuDWVX/0p/zEJ4sGZe54YGadtUOQLEHGFgFlwlSVp3J0RPCj1PSt9rZ/aBqQRcmTvA2XoAVF0/giCd706QVM/YlZu3pZyk2aNhI4PSk8mg+4e7AIkhDsZvQOwcqN3F07mEzgz5BXhXOn+2mK/9xcuFsxko+tay/d3xGHE1SXKiZRzcxhLQtiv1HEs6eIS6ha/yEp0YWkBGwGGF2r0Ph5GsbEc+uqOV4t2Ixly/1Fq5wM81BbImTZQtizHqzHoQly4+cBVESwd62ruKcOAsOClQz6G9JRR4inux/1OH+7YW1vPKSZ2nSwNqsQf8WuZjdURPQCmHe3/rFpq4BLPHGTttl38E0O8+TMoqQEM5GerKMm1v3foRhOezNEtQCNMdrxyUgUYFHu+DDVNRFe0knBH4d9L1S6RHol4tQOKwwDGMZ4HToCSJoWLfIiT4R8qk8otr1NJYteOKm0xUdfpW538zn2Y0FM/CVpTOcvXgiozGdTrfV0tGItroL/4ZeZGVNm2G9mhGm5FcL1+PKT3Gb/NjMMvHWN7TmbUxDSnHmnzNi4nzpnv6Q1t0MEUFwCO0Znpk/o6aE5Q9WxS9nd2B+MuNBXaBMMCajhnQ/UWdCpvvoBhxfJb6LOAEpHSgWI0D+5fbSXS/XPddpahjJAchncgQiy63x/esqz0SoA0dzU0L2YNhdgv0BDOHii6eIrB X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2024 06:14:20.9829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a84c6067-51c9-4694-b7c0-08dc3e6dd423 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: SN1PEPF0002636C.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4041 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Eli Britstein The following log is printed in WARNING severity: mlx5_net: port 1 ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed: Operation not supported Reduce the severity to DEBUG to prevent this log from flooding when there are hundreds of ports probed without supporting this flow ctrl query. Fixes: 1256805dd54d ("net/mlx5: move Linux-specific functions") Cc: ophirmu@nvidia.com Cc: stable@dpdk.org Signed-off-by: Eli Britstein --- drivers/net/mlx5/linux/mlx5_ethdev_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/mlx5/linux/mlx5_ethdev_os.c b/drivers/net/mlx5/linux/mlx5_ethdev_os.c index eb47c284ec..b713354b09 100644 --- a/drivers/net/mlx5/linux/mlx5_ethdev_os.c +++ b/drivers/net/mlx5/linux/mlx5_ethdev_os.c @@ -671,7 +671,7 @@ mlx5_dev_get_flow_ctrl(struct rte_eth_dev *dev, struct rte_eth_fc_conf *fc_conf) ifr.ifr_data = (void *)ðpause; ret = mlx5_ifreq(dev, SIOCETHTOOL, &ifr); if (ret) { - DRV_LOG(WARNING, + DRV_LOG(DEBUG, "port %u ioctl(SIOCETHTOOL, ETHTOOL_GPAUSEPARAM) failed:" " %s", dev->data->port_id, strerror(rte_errno)); -- 2.34.1