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 22B4545E41 for ; Sat, 7 Dec 2024 09:02:56 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 196E84065A; Sat, 7 Dec 2024 09:02:56 +0100 (CET) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2076.outbound.protection.outlook.com [40.107.220.76]) by mails.dpdk.org (Postfix) with ESMTP id 79AAE4065A for ; Sat, 7 Dec 2024 09:02:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iYzHCSNDpcl+hhJ2lony2iAMjmU1pKvSSNWVBkml5PK7Ew1/MGibHicNrSzcOg8yX5pGk0sOgdYo1OPeaDJB3MkFKOuuidPXzP/2au4mAtP+nXekB7bLP5pXD/xxDhA5jvENA/Ej2Uyw6ffDPzWyGJ1TaVdSj60w24TN6AohNCcoyHcsHwvy+UW5mTkN5vs5llZjapvEwBqkFUhzNwgvHpiQTJHQv5r/0WZhseSjE0wHPSYlMbRXenRSi6mt8Cf8RDUdVL8m89y4zxUGbjscwbf9loMiA9TS58/cqfhk0hwp4N50Jqm50PvazaXHGGSwIzzxDhh7Dx4hR1FS4knZwg== 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=yeuhtq9GC8AmqYPxvm5UeQ49DDCzpYjCQC0NnwI8cHw=; b=c3wctlMzsXD5ye2yFC3hk54Ern8UkPqym+165LY6E0U7kwwHtcUHuUtD8iw74IANUvfGgRtyhBFdhXLn6r6fbLDoiE7yuEy9KqsiVpyAkqwurJ/WMbqFjd3Zu8ovepOuVSNzmhtI1cVeQAG8+fkpk4KrsoGEOSEd3w7XMQO7raKD7w6TxDQh4AEfBfrtWoysOSlPhVFOaxQfApSUU5SVvc3/ii71c0gmhZTTNe/8MPbuIYT+C2aP7acVixlyaV+d8nzWUekLXXCyqkXQFxrWhiVMUQ0FDoEdNQdeqmDAL6PUlWtyCUsQLoL9xFWTM7cgw66cRoWh0nw/e1YdLmIAsA== 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=yeuhtq9GC8AmqYPxvm5UeQ49DDCzpYjCQC0NnwI8cHw=; b=mqPKNh0ZKLWuEm9raJLyTxvbSOnV0Zk7LVkrxAqghWYBd5PE2YSmx6lqV6N9Go5yHiFBUibo1vEuNzrhf2FDN1FteBAVwFv2wukYi56WNlOuHyb3AFWhpnGq/alG1SGLNl93rCHuGZ/AEjdwGHz7QJaBUtk9Uq+nAjETLJNRqLwJzrBKZ5oGbOeULQNxEQW3tZSbIvt1S93q1iCtJKUIYYHJq8JyS8LU+iboEK5zk9Go9/6L7+drga8CRrobReJn13UYm10Wzwm/Kt3LB1BONt2VugSH0d8urTE592XNkG7Jfm6/1oECND9XDUJxRhrv9xSQ7a+R9LNnF+NT31/MDg== Received: from BYAPR11CA0070.namprd11.prod.outlook.com (2603:10b6:a03:80::47) by PH7PR12MB6000.namprd12.prod.outlook.com (2603:10b6:510:1dc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.12; Sat, 7 Dec 2024 08:02:50 +0000 Received: from SJ1PEPF00001CE3.namprd05.prod.outlook.com (2603:10b6:a03:80:cafe::73) by BYAPR11CA0070.outlook.office365.com (2603:10b6:a03:80::47) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.9 via Frontend Transport; Sat, 7 Dec 2024 08:02:49 +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 SJ1PEPF00001CE3.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:02:49 +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; Sat, 7 Dec 2024 00:02:39 -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.1544.4; Sat, 7 Dec 2024 00:02:37 -0800 From: Xueming Li To: Gregory Etelson CC: Xueming Li , Dariusz Sosnowski , dpdk stable Subject: patch 'net/mlx5/hws: fix range definer error recovery' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 15:59:33 +0800 Message-ID: <20241207080055.488538-16-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-1-xuemingl@nvidia.com> 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: SJ1PEPF00001CE3:EE_|PH7PR12MB6000:EE_ X-MS-Office365-Filtering-Correlation-Id: 90ff750b-dab6-4e9a-4ef6-08dd16958b48 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?d1ENYICoGUwIizXTY5ZD8bn3ZwL5rY2W0vvrrSKsJVj3BP1f/KLq/ILv436P?= =?us-ascii?Q?ri81Mpu+/DMrW3EMOeIqAPcDDM0mqelZnU2jNdIG1jBsHM0nQE0ubzLgL/V6?= =?us-ascii?Q?/CPMBOsDbtcvC/6TvuXCkAvpWN/iYma1bbigXOuZg6dFO/E2eQ5YtRXriLLO?= =?us-ascii?Q?UuMt+5vHFxvnoEhIrDSX7J7a/Ou2UkTearZ9D7jPhjWF9zqKMOK8TuISU076?= =?us-ascii?Q?YAjQfslRWvQBPGmuQQtmAE2F/bf6EN7fWj0bGFzKcRKEbHUnVKm68RtsW3er?= =?us-ascii?Q?25PRTT/CnwL/4Gf7LSLBfmIU0J901Pg9ibkSfCL6YH9LOwWfGyxytn7EiEr8?= =?us-ascii?Q?hybG9xshvhTgoXJliTV/DX79ZlAGPBq4DUvUAZyT4g6CY5XbeZ0uY3KmajL1?= =?us-ascii?Q?ioj7URLo66qFQLx4nkBrfk9i1YyWjekQZsZ9bW8A2cSmBwivaRyNxTSuFb7S?= =?us-ascii?Q?2TQpqAFo0eDXpvbWhy6YLg2KgyXt6Jdfwcs5jj54gzg8p1gSc6q2OJ0FEuoo?= =?us-ascii?Q?bm/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YvJoaqzbKs+2N4c?= =?us-ascii?Q?m4YTdESDMaPgUdILxM+8ZPUizNb2+/mR?= 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)(376014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:02:49.7938 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 90ff750b-dab6-4e9a-4ef6-08dd16958b48 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: SJ1PEPF00001CE3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6000 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.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/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=40ea0017dda717772ee92e3d17c277425d18b64d Thanks. Xueming Li --- >From 40ea0017dda717772ee92e3d17c277425d18b64d Mon Sep 17 00:00:00 2001 From: Gregory Etelson Date: Sun, 27 Oct 2024 15:07:23 +0200 Subject: [PATCH] net/mlx5/hws: fix range definer error recovery Cc: Xueming Li [ upstream commit 84c3090e517641027a7b64fe5bb6eccbcfa05a6d ] Assign EINVAL to rte_errno when an invalid matcher range definition is detected. This ensures the calling function is properly notified about the error condition, which was previously not being reported. Fixes: 9732ffe13bd6 ("net/mlx5/hws: add range definer creation") Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski --- drivers/net/mlx5/hws/mlx5dr_definer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c b/drivers/net/mlx5/hws/mlx5dr_definer.c index daee2b6eb7..ef437a6dbd 100644 --- a/drivers/net/mlx5/hws/mlx5dr_definer.c +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c @@ -3221,6 +3221,7 @@ mlx5dr_definer_matcher_range_init(struct mlx5dr_context *ctx, if (i && ((is_range && !has_range) || (!is_range && has_range))) { DR_LOG(ERR, "Using range and non range templates is not allowed"); + rte_errno = EINVAL; goto free_definers; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:44.658157620 +0800 +++ 0015-net-mlx5-hws-fix-range-definer-error-recovery.patch 2024-12-06 23:26:43.873044829 +0800 @@ -1 +1 @@ -From 84c3090e517641027a7b64fe5bb6eccbcfa05a6d Mon Sep 17 00:00:00 2001 +From 40ea0017dda717772ee92e3d17c277425d18b64d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 84c3090e517641027a7b64fe5bb6eccbcfa05a6d ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 5c2e889444..5260830d9b 100644 +index daee2b6eb7..ef437a6dbd 100644 @@ -23 +25 @@ -@@ -4058,6 +4058,7 @@ mlx5dr_definer_matcher_range_init(struct mlx5dr_context *ctx, +@@ -3221,6 +3221,7 @@ mlx5dr_definer_matcher_range_init(struct mlx5dr_context *ctx,