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 4F13A45610 for ; Fri, 12 Jul 2024 13:02:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 48F02402E5; Fri, 12 Jul 2024 13:02:24 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2071.outbound.protection.outlook.com [40.107.93.71]) by mails.dpdk.org (Postfix) with ESMTP id 0A72340261 for ; Fri, 12 Jul 2024 13:02:23 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aprHeyNA9A+HY19eq5gJgRbMmI91Ru5MLSVUiF81rZO3TwwWb+oh5kowQa9wVR89g8ms3eS7UQbjNpBUGnxbZXAe4e/QckgHoVJj4nmLVzsH9p+X6hhktgp3L9xHSBG9GueEIC2KN5PnJI16pCr+aFYM4EUVfgCBLTwmsEoDkkYN2vFFKtdeAKhijPdI02FAPwfUaVJZOEVuseWmqKD0xsM7fWQOLJquboFKVjW7UjJD1BYVUklUUHa6ahXyTmSEucava2Up5mkFgKsuCI5KWkY9K8C8CbXzkuevjmKbQ7oM2tDEmvzneioMIxkCButmn9ntFl2dbhkVSjrPz4CwpA== 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=IgfAXpz1TxxgykJKULBK+6Vvo4a84Ef60KaUtA0D7gs=; b=oT45s9TsfkhdqOow0kVqnXj5ANHp5eq/YHyccdkWcQwTCi0qcyrvmSGsBeVBZf8YrtVEB4sk5ZAkjQX5IVcYq/i+oSGcCidAg00CS3tMvhaYQAbAyWahU/pRIGgNJZ6Y/gJyuRGRh9hyiwm7g1S8IQWNif7PmU6MJ4hHmb3UmGtXroyMmvLuwRAHQ+GIdIeJdd1wEY3zUW3m8APBYj9rlVI8DxXIdV2O91kUPhQUia0FLeSPMJVTR2KbQu7gRgqet/Q1BDb2V/oztOaOoA0I8xq02cfn4wiIJhOiVbRJ7idxZccFU+k54kVI1vNLvkxKZQqlsEny0VRFXAE6VrJkNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=IgfAXpz1TxxgykJKULBK+6Vvo4a84Ef60KaUtA0D7gs=; b=khTxm4M9281ODSlOLINLDUMeTrw2Tk82xbIxc10UN7ccrP1OOXXdPSotxLlS+Zcp9urnUSKyLom4QNhdi8Aw7xYih4SKK/9D+JbDViSzm2McqywaLNUXC3Ilo3KqGHGy27hO3FNeIUmcT0hJ8BVf4/uWfJ9gMffogPZ/AvSjYyQP4RqAIL2ZAoyaPVF4j1nS+IsywTlcFIkEnhgAujSOwAgrT4OjWlTcVcOQZZA3sYGdr9z/6mYbSC10xJQw3qwW84G7GXXW6HbZhQBkhVzJQ9tRb56b9qy0HL5RSkojaCfnTtsDZaCRVJysyFTzj5D+MZmzZNQBwe545fmOTyGJKQ== Received: from BY3PR05CA0040.namprd05.prod.outlook.com (2603:10b6:a03:39b::15) by SJ2PR12MB7847.namprd12.prod.outlook.com (2603:10b6:a03:4d2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.26; Fri, 12 Jul 2024 11:02:19 +0000 Received: from SJ5PEPF000001ED.namprd05.prod.outlook.com (2603:10b6:a03:39b:cafe::92) by BY3PR05CA0040.outlook.office365.com (2603:10b6:a03:39b::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.22 via Frontend Transport; Fri, 12 Jul 2024 11:02:19 +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 SJ5PEPF000001ED.mail.protection.outlook.com (10.167.242.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Fri, 12 Jul 2024 11:02:19 +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; Fri, 12 Jul 2024 04:02:09 -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; Fri, 12 Jul 2024 04:02:07 -0700 From: Xueming Li To: Erez Shitrit CC: Matan Azrad , dpdk stable Subject: patch 'net/mlx5/hws: decrease log level for creation failure' has been queued to stable release 23.11.2 Date: Fri, 12 Jul 2024 19:01:32 +0800 Message-ID: <20240712110153.309690-2-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240712110153.309690-1-xuemingl@nvidia.com> References: <20240712104528.308638-1-xuemingl@nvidia.com> <20240712110153.309690-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001ED:EE_|SJ2PR12MB7847:EE_ X-MS-Office365-Filtering-Correlation-Id: cc866b16-b7cc-43d1-8858-08dca2621914 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?a3HdP0G/4L+0FX6lHl4bdgm8flgNYgBUoSAqR5EgwACFXNwAnDQjmFMABHrr?= =?us-ascii?Q?U84qbtwnkA8pBgJ4WFOA7Boo+U+jC8lyzNLjns1nwopCwJ77x3WHEQj7AxRy?= =?us-ascii?Q?GehSUvhrCxRu+gbMrfpq095xNa5Qfo/u+6UypDetEduhIZqrIb/t4KG5M0UY?= =?us-ascii?Q?cDytLAaPf3Bo23lqk21N4hpVfMD3v3d8LTuESsbhEO5FnRGX1KmcjJlhZxVg?= =?us-ascii?Q?25pP0f0UjZnr8MuneNT4RRKP0T/Rd0qRB7ntBxgKHLM6hL3UL20kRSlvxyrV?= =?us-ascii?Q?dgoLA3axp1YJ2C8JjtjaWcveVtYblsnqSSFFZ3guYrIxY/sN+LpJOZu7Liid?= =?us-ascii?Q?GpH7+NVyS7dIwhliqFmCI7k87bwIvfrsQLmdEJy7P8tCK2MDqrU7vyfdSzhH?= =?us-ascii?Q?1RWQzejUfRg9WTFcaD8wgOJ/2yLMi43yWHwDn8o/jCmUFLWf5bNQtXdDSTj3?= =?us-ascii?Q?ukqB0RGFmlBgm8lqI8MwrJNcCGnJXNqQVatMIKhrBrOWiEkm8WHpIUEhLD48?= =?us-ascii?Q?lolv9G0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G2D?= =?us-ascii?Q?MrU+fu1TayMonst7A99RVATzCHXL0vYr?= 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)(36860700013)(82310400026)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2024 11:02:19.0882 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cc866b16-b7cc-43d1-8858-08dca2621914 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: SJ5PEPF000001ED.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB7847 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 Hi, FYI, your patch has been queued to stable release 23.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 07/14/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=6a05d2e85bb2aec3c2ecabfed226c06f6777f292 Thanks. Xueming Li --- >From 6a05d2e85bb2aec3c2ecabfed226c06f6777f292 Mon Sep 17 00:00:00 2001 From: Erez Shitrit Date: Mon, 6 May 2024 14:44:04 +0300 Subject: [PATCH] net/mlx5/hws: decrease log level for creation failure Cc: Xueming Li [ upstream commit e014d5e2e49994fbc504a49814ed480a60c85d63 ] 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") 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 3391b3d32a..003b50623c 100644 --- a/drivers/net/mlx5/hws/mlx5dr_definer.c +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c @@ -2857,7 +2857,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 = ENOTSUP; return rte_errno; } @@ -2990,7 +2990,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; } @@ -3335,7 +3335,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 71478dab33..bb171a0340 100644 --- a/drivers/net/mlx5/hws/mlx5dr_matcher.c +++ b/drivers/net/mlx5/hws/mlx5dr_matcher.c @@ -807,7 +807,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.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-07-12 18:40:17.758687288 +0800 +++ 0081-net-mlx5-hws-decrease-log-level-for-creation-failure.patch 2024-07-12 18:40:14.226594213 +0800 @@ -1 +1 @@ -From e014d5e2e49994fbc504a49814ed480a60c85d63 Mon Sep 17 00:00:00 2001 +From 6a05d2e85bb2aec3c2ecabfed226c06f6777f292 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit e014d5e2e49994fbc504a49814ed480a60c85d63 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index a0f95c6923..88be27dcbb 100644 +index 3391b3d32a..003b50623c 100644 @@ -25 +27 @@ -@@ -3539,7 +3539,7 @@ mlx5dr_definer_find_best_match_fit(struct mlx5dr_context *ctx, +@@ -2857,7 +2857,7 @@ mlx5dr_definer_find_best_match_fit(struct mlx5dr_context *ctx, @@ -31 +33 @@ - rte_errno = E2BIG; + rte_errno = ENOTSUP; @@ -34 +36 @@ -@@ -3694,7 +3694,7 @@ mlx5dr_definer_calc_layout(struct mlx5dr_matcher *matcher, +@@ -2990,7 +2990,7 @@ mlx5dr_definer_calc_layout(struct mlx5dr_matcher *matcher, @@ -43 +45 @@ -@@ -4046,7 +4046,7 @@ int mlx5dr_definer_matcher_init(struct mlx5dr_context *ctx, +@@ -3335,7 +3335,7 @@ int mlx5dr_definer_matcher_init(struct mlx5dr_context *ctx, @@ -53 +55 @@ -index aeff300467..c9f5e46d24 100644 +index 71478dab33..bb171a0340 100644 @@ -56 +58 @@ -@@ -877,7 +877,7 @@ static int mlx5dr_matcher_bind_mt(struct mlx5dr_matcher *matcher) +@@ -807,7 +807,7 @@ static int mlx5dr_matcher_bind_mt(struct mlx5dr_matcher *matcher)