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 C2FA143FBE for ; Mon, 6 May 2024 13:44:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B1D4C402E4; Mon, 6 May 2024 13:44:43 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2058.outbound.protection.outlook.com [40.107.94.58]) by mails.dpdk.org (Postfix) with ESMTP id A30EF402D0; Mon, 6 May 2024 13:44:40 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=URyfgewun4kd205ki5PUo3zXEBVUFLY5LUKJJ0hQdoOWbX2lm5hf5Kc+ea1BMizRnrFDNXJLvVO/aIdO/P+YXpxqmiZyC7YZvaTYdNbPMklu7VSFROlhEnyyCvMbCvcEoGNzClDTyzm9g3g8jutI9yaAk4iGNiXWnDqd+Vq2AU989Y8wKoG7LB411SFoSdCSN86fSgmbEkehsh+pYo1wC6YDuID3cJaomDbZm0DzMdtFnPtJQKW3KaGxZdzRxZjrwwPMIYOu9A5ia37bXLUk9LHizGQmBc9h40uecWVkoniOLN7fSNB6JMn41SJ8d9H8n1cjs7FDYTJlg1zfnjUCnw== 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=6mOm5j9R7xwBlAq9OsnPzkMb7Uq5OMsIrWOqUP6J6QY=; b=hiQwgIu8jGCIiosUwbLk68pMqhmCVMALoXS8p7m4HM223EohvJ0TC6q/3wYldMyYWrZEzKKp2mNNUDDrL8Xy/QnnqfB1vOEf37H/AFwNnNUAhkgIKVp6RaJ+Y7c62OAanlYC2RyU9rBE/ZML+enxt7ftexMPjnlitT1rt68ipWVGMWVUd/hZlO7dH+2L5yjrulDgW0hYOymTBmbFY8+4gPAxRz018K4BFMUCVojPMxX2M7+MdWCCxWsmu2gvRMkCTo/jGiSHHgJiNq9e4EoFDKiaWPlGW3L+tHHgSKucZc4NKzG/rlgsB9i0Op1x99IJyG266llXDb8C3QZbf2PH1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) 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=6mOm5j9R7xwBlAq9OsnPzkMb7Uq5OMsIrWOqUP6J6QY=; b=YLVNHYEFPfm4Scfm7IEizsOwtC938+Yf7Ge0Re9m9wbldoYXzKgUFNa8pJLOooDTzQ5/jNECevgTzijLcl2kyPmWWRGbS4Y1R6SZhw2WTgq56vGP6icAaLfTPhKj57T47rOoKGnt9q/uSRUaqn2K0xBJ30qDNYFanRFgBt2aCSuuQgergTqHRPK3DXLzP6bre8q4alWkYtrfHf2Iz5ktUFVOLZ9fy5RErZvXwt3Ld+9IbrdGzrwjhNxBihJxdvCUC5+igLqobcUQ9fxO90dGOuUZUzItJKUpz7jH25qUP+Aibb49s2uAzdoCBaOLEyGzoPrUIgZ/OGLJupGWrqwofg== Received: from PH0PR07CA0026.namprd07.prod.outlook.com (2603:10b6:510:5::31) by DS7PR12MB8201.namprd12.prod.outlook.com (2603:10b6:8:ef::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 11:44:35 +0000 Received: from CY4PEPF0000E9D5.namprd05.prod.outlook.com (2603:10b6:510:5:cafe::cb) by PH0PR07CA0026.outlook.office365.com (2603:10b6:510:5::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Mon, 6 May 2024 11:44:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CY4PEPF0000E9D5.mail.protection.outlook.com (10.167.241.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.18 via Frontend Transport; Mon, 6 May 2024 11:44:34 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:29 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:44:29 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 6 May 2024 04:44:25 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad , Mark Bloch , Alex Vesker CC: , Subject: [v2 01/16] net/mlx5/hws: move warn into debug level when needed Date: Mon, 6 May 2024 14:44:04 +0300 Message-ID: <20240506114419.966498-1-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240314114220.203241-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D5:EE_|DS7PR12MB8201:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d9e8fd0-c200-43cb-08e3-08dc6dc1e67a 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:13230031|36860700004|82310400017|1800799015|376005|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CC9KyonO82l1sXQcLsmkhG0f9DeAg6Rb2zpn2e+SbshMIgv3XmeO/opD1u72?= =?us-ascii?Q?BdI3jj90VqdZW9IML7f+ybMTSRDmQAJdK1cF8ofLuA+jI9z8dMks2lRygTto?= =?us-ascii?Q?V1Ozvx2azTGnKAy3s0PynxAj0tk6t8vQLf4Dgz6uUOHzEkqafa49SKydArlO?= =?us-ascii?Q?v9evxVZrUu4DGzyylrY840XhOAJCkOysuXDzkSmJ3VAFrdbyLpIncyvBgZ/w?= =?us-ascii?Q?ILZGJBCBQ/EmFlEdZMjgCsbeCIpdAuX+vU6Ves7MKDlptNQHTLapZRhpsA4C?= =?us-ascii?Q?qJ4QUwDy316DdNxux0ARauhKWxVRnmkqCt8L9e5rP/6HMImEfxhUva4M2CqX?= =?us-ascii?Q?NV0J38PZOidvKyfqxv2uhAymDRJrPCy3FVqCQ09dQwF1YavmgEW3JPWj9qFi?= =?us-ascii?Q?RX7iW9PYUBV47frHTBs4554SjbwP/EfKvJPxJQmoGRy1c68yJ7hRuOVgJJ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B9hGT04QhUUt/EPrAZNQ2Cm3Gje+SuVctwNM+CBf1?= =?us-ascii?Q?kDX9T5+MIOoJ2xIg1RjbMeVYPiGf?= X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(82310400017)(1800799015)(376005)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:44:34.1547 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d9e8fd0-c200-43cb-08e3-08dc6dc1e67a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8201 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: Erez Shitrit When the user tries to create a matcher and if failed with specific errno (E2BIG) the message will be in debug level and not in warning. It is a part of a feature when the user re-try to insert a new matching depends on that errno, no need the annoying message. Fixes: c55c2bf35333 ("net/mlx5/hws: add definer layer") Cc: stable@dpdk.org Signed-off-by: Erez Shitrit Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_definer.c | 6 +++--- drivers/net/mlx5/hws/mlx5dr_matcher.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c b/drivers/net/mlx5/hws/mlx5dr_definer.c index 35a2ed2048..81d0e0e6df 100644 --- a/drivers/net/mlx5/hws/mlx5dr_definer.c +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c @@ -3534,7 +3534,7 @@ mlx5dr_definer_find_best_match_fit(struct mlx5dr_context *ctx, return 0; } - DR_LOG(ERR, "Unable to find supporting match/jumbo definer combination"); + DR_LOG(DEBUG, "Unable to find supporting match/jumbo definer combination"); rte_errno = E2BIG; return rte_errno; } @@ -3689,7 +3689,7 @@ mlx5dr_definer_calc_layout(struct mlx5dr_matcher *matcher, /* Find the match definer layout for header layout match union */ ret = mlx5dr_definer_find_best_match_fit(ctx, match_definer, match_hl); if (ret) { - DR_LOG(ERR, "Failed to create match definer from header layout"); + DR_LOG(DEBUG, "Failed to create match definer from header layout"); goto free_fc; } @@ -4041,7 +4041,7 @@ int mlx5dr_definer_matcher_init(struct mlx5dr_context *ctx, ret = mlx5dr_definer_calc_layout(matcher, &match_layout, &range_layout); if (ret) { - DR_LOG(ERR, "Failed to calculate matcher definer layout"); + DR_LOG(DEBUG, "Failed to calculate matcher definer layout"); return ret; } diff --git a/drivers/net/mlx5/hws/mlx5dr_matcher.c b/drivers/net/mlx5/hws/mlx5dr_matcher.c index 1c64abfa57..1213e7f0ad 100644 --- a/drivers/net/mlx5/hws/mlx5dr_matcher.c +++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c @@ -877,7 +877,7 @@ static int mlx5dr_matcher_bind_mt(struct mlx5dr_matcher *matcher) /* Calculate match, range and hash definers */ ret = mlx5dr_definer_matcher_init(ctx, matcher); if (ret) { - DR_LOG(ERR, "Failed to set matcher templates with match definers"); + DR_LOG(DEBUG, "Failed to set matcher templates with match definers"); return ret; } -- 2.39.3