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 EB719428F8 for ; Sun, 9 Apr 2023 17:25:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 96FAD4114A; Sun, 9 Apr 2023 17:25:55 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2051.outbound.protection.outlook.com [40.107.93.51]) by mails.dpdk.org (Postfix) with ESMTP id 49A26410EE for ; Sun, 9 Apr 2023 17:25:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PdRzNa18J1x72zhHJ+VWTLcyVzzwT4j10/WyXb7ORbqxUT0m6I7NLb6cYfAIafuEpA5l7p/mdiDAWxPynKwKvtp1iMXUr4s8HlLGkfJerQpA+NSgSOF5IqbEWRJJ9JseMEIAXjBBNMwEWiJ0AIwzgOnH9FhqTYfLGJJnFzmiNFcts/wVLr3EB4PfdwE+gqJtesWh9yywzBP0q7UAObwZZ5eiYtzEkj9ZSE9UkMEZ9rAxj6TwJ1sjCdl0LN0m5Ndgn3ReCFv8bXp5uyfeswqKtyL8MZz60NTf7cSQDvdB2D9FNnqBH+C9pVS/FscBWJjHC4yf+Ad9N181V/gSXAYyFQ== 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=NJaACrXhWgk891V7UvR/I9DURrQVvrSUgqgKWWbDuZk=; b=ApYEs/TxDrA7crjjvrqXDpHnZQHz5X7JtIvxxfQty1/Ydz8vl4haXXchVv26nDf7PMo93szYgLbraeX7CsdI8t+Gd/Qdyr+xMvnSCUtNSD5lu00gjCo9aYQZQ9EjnD0sxIlFMNYCj2vk4kVfEyzsTdmZiN3tKQfNDn4rMM6VDUlBpZI1hQI0QCH6fLAziqb/wXmcrMqoEVaNbkPfUzFRRPyeljoHNmfrm1PS0PrQAAfjpTzjcAlfJWGYC2IqMWFy8We+GKY2/skYYxLHzuQlP7dQzz5EdRZLWj6iFodLWK2KH56RKRjtq0XPzSWN+Se7vyS+3Q7WO1usQ2LCM9EHvA== 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 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=NJaACrXhWgk891V7UvR/I9DURrQVvrSUgqgKWWbDuZk=; b=noUZwe1ScJfZCtdbzX6LC4iYy84uWfFr2Q78PUlxyh5ct14nGlThumD2dFCiFdRfo3cUBNZ/x/KU5L+RsJ0erDO3udi9jiiynWZ8wlihniZKMJYfk2azJId2M9cC5ILH4QHkufMlEzsZ6d7x+jBY1vmC9n5u1VcfOjF3u3HfDTjb1xggkJM2Tw04ndir4wKqY/4BOrNpHQu3e/a74QCK8c2RHQaOM3RzWuVAuWzNH4q7qaFXXenJI18McGoQCCvBRCBqL4mk6wed040sAZDFTwM+jiBrvIM99w1yFofvYiHsO4dt2ratYo9K7s30wAFHCXGNjaAwwYAfD5o+QuU7Iw== Received: from MW4PR04CA0095.namprd04.prod.outlook.com (2603:10b6:303:83::10) by BL1PR12MB5304.namprd12.prod.outlook.com (2603:10b6:208:314::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38; Sun, 9 Apr 2023 15:25:52 +0000 Received: from CO1NAM11FT043.eop-nam11.prod.protection.outlook.com (2603:10b6:303:83:cafe::33) by MW4PR04CA0095.outlook.office365.com (2603:10b6:303:83::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.38 via Frontend Transport; Sun, 9 Apr 2023 15:25:52 +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 CO1NAM11FT043.mail.protection.outlook.com (10.13.174.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:25:52 +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.986.5; Sun, 9 Apr 2023 08:25:51 -0700 Received: from nvidia.com (10.126.230.37) 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.986.37; Sun, 9 Apr 2023 08:25:50 -0700 From: Xueming Li To: Rongwei Liu CC: Viacheslav Ovsiienko , dpdk stable Subject: patch 'net/mlx5: fix crash on action template failure' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:10 +0800 Message-ID: <20230409152529.5308-3-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] 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: CO1NAM11FT043:EE_|BL1PR12MB5304:EE_ X-MS-Office365-Filtering-Correlation-Id: fbc9d7b0-de46-43e7-cb64-08db390eb463 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kpOmmeXpERBWgkC/rNjmLTciy3inO4NT0spI0OczeVfkAkXUke7X0dwJaT/EEdwpK9Pu58owBgiSXaHoHTwGodFOnn2LN5DImONZmRNTvnFmElVeOxL/zhId0PbkL8KMFZKawtHk6u8Z/d1zRFT2+X97ofw/HpLb9IxgzOcK3tgf6cX4Z/eeetxWIgHTAc/dYviJ+2r/jRNiMoZjqxlYbP6Gzn3ei1c7/AS0uYmwA27hiFCECmaE8wOjmeTlbaaqSxcZ27EVMXPxVuCRM01gay6Cm9zY99VMae71mBbMV0YkE9kDaqGKvtsNZ0IN/biorAtnuP0cBCLad1FPY9c+QfZzobVFgcfJS/8ceH/qenZ4/U2Frf7LCrFsvOh+umxRpIkYQtLF9+/7/1pYJYAX9dL4ERCKF4QuLiYXUwbbHzV66Ngoq4a//5JvPiYBhTGj4T/iaE5K2Pyt0ihudchW/EFnNN/Fq1tDMRRR/3aunp7pKVCjXcsO05Eduet8doZg/9WSjkQROtcHsVo23ISqWceukwb7hOVEzK7cEuQIJkvvjkVP1Z41ZJscZqtFurjEDWBCLUKFZ9McOGnUhgQjJdiCkDnmPvz4ja0+k1W3CBkcaz+nqmzb512x8O0Xv7+Pbl0qSqmHqVcLk3LYxlJWUrxYVFEZke9I4anaRvg3b3RWZ6BSKsr2HaExmhnuej6Eya1jPhZ8zVpSDUg/Ns7a46FzPNqWz1pTq2PMeWNAeONrM7sdqQrCvEPD6hGOdU/D5L+BfNJE5Ac64Vg4ySZDf0wcbNUw0GS+8VRRpDiefoFBOG9vRXFBFhgKsSaLUjFf5ewVqQ6xcuWQ68aKSAl+6g== 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:(13230028)(4636009)(136003)(396003)(376002)(346002)(39860400002)(451199021)(40470700004)(36840700001)(46966006)(36860700001)(426003)(336012)(47076005)(2616005)(83380400001)(70586007)(966005)(478600001)(7696005)(6666004)(16526019)(6286002)(186003)(37006003)(54906003)(6636002)(26005)(53546011)(1076003)(2906002)(40460700003)(36756003)(5660300002)(7636003)(70206006)(356005)(82740400003)(4326008)(41300700001)(6862004)(8676002)(8936002)(82310400005)(86362001)(316002)(55016003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:25:52.0259 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fbc9d7b0-de46-43e7-cb64-08db390eb463 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: CO1NAM11FT043.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5304 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 22.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 04/11/23. 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=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/03299eb5d4384767d929ff3532663c43959181cc Thanks. Xueming Li --- >From 03299eb5d4384767d929ff3532663c43959181cc Mon Sep 17 00:00:00 2001 From: Rongwei Liu Date: Sat, 8 Apr 2023 21:21:05 +0800 Subject: [PATCH] net/mlx5: fix crash on action template failure Cc: Xueming Li When action template creation fails the testpmd expects error details. The driver did not set the error structure and testpmd failed with a segmentation fault. Fixes: 836b5c9b5e0e ("net/mlx5: add action template management") Cc: stable@dpdk.org Signed-off-by: Rongwei Liu Acked-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_hw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c index 20c71ff7f0..2fe33bbef8 100644 --- a/drivers/net/mlx5/mlx5_flow_hw.c +++ b/drivers/net/mlx5/mlx5_flow_hw.c @@ -4534,6 +4534,9 @@ error: mlx5dr_action_template_destroy(at->tmpl); mlx5_free(at); } + rte_flow_error_set(error, rte_errno, + RTE_FLOW_ERROR_TYPE_UNSPECIFIED, NULL, + "Failed to create action template"); return NULL; } -- 2.25.1