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 9A602428F8 for ; Sun, 9 Apr 2023 17:27:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FCC74114A; Sun, 9 Apr 2023 17:27:47 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2063.outbound.protection.outlook.com [40.107.243.63]) by mails.dpdk.org (Postfix) with ESMTP id 7A8064067E for ; Sun, 9 Apr 2023 17:27:46 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lw3a6DncsdQHPcOWFUIbguto4GJGp6FG3zXVLCc6pmmjqLA3PQLluJ42O423gNfay8fEOkBFGpPqKSw8wvkuDORs8EZCFPK2/3nAso5fjrxg4bAdNt9cPAMRWIhl2kaORnkY5xURHKzUZUAbf2rGswWit2/jmjIWE3uk0/FPZrrbSU+f7+b6Q8q1Ovjb11APlsvSvbQmWd+q0CHntvdBXojWdn36BUcm4gXeVLoUHr4rzifhNBPjfRAzwUC8yFbEonnTs5CdI/au3OuCI1t3d3VJNyatTvQht5nDfqq3n66d8tKd4TMXKLimzkxJGnJzTbPznZ21i3B4zckDfdP1MA== 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=wgb3S3PZQak2jEivAGzd3k1UPyBHIJu6jVGBYV8pJ2Y=; b=NqoH407czfZLyR1q0u45h5zCcZTU8C4bCH2+amQfR5ZOVoU84KLTWX/3XxV6IttDZqF3VznUwcz09Q0kJIc7vjMqrSj4/1WC5qPGVWx1Q6oYZDiHQ9XlbpADoQpUS2T5k+a4Ce5Ecs+g0fefQd42rYwMm0mkhxfq9YHmExMjlT9JfEYHP8wWeeDv/AWRqsbniq1PD1jB5BRs+lwAjcCrll0Ai+L1JPQ/2ozpMz4W0oAbLoOULQn9QEz+Gp911qjH2jUS/LpHt+Ttb0e67/Vds5aaA3VuhXh5url15LVnmrmIJyndnVELOzwlKlxmGMxDBfHT4B6vjKwIv0p9vupU2w== 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 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=wgb3S3PZQak2jEivAGzd3k1UPyBHIJu6jVGBYV8pJ2Y=; b=mIFZrAK3swUfM1ZpOkS3C7ybL6WYMHBDWNMHCFtaikWRLqdSThtkUw2M44muPAOOcWBtgUju9szk4/t5R7IGDS2KerYGdvi9uL73uyxZ7cNdqtMGM1b+AAIpQAyo47gQZBpVc/Y5I+GUp/pTB/opQ0nhYLGCu+DNika0/3epes9s6EUTevkcfmXTdo9faqIVVPH7Wc5uY6OHMWH22/YWSH6fITcYd34L38nal0LGMl2y0IAL4EZVSz0Yv2g+L1sTVFV72SvCgEANcsw5BYMWkAXdn0+XNOKL7v/9AEaZVrzohjFOCc4QRs7lHf/au2yn3ZArpNVbTq8sRU8R6YZv/Q== Received: from BN0PR03CA0018.namprd03.prod.outlook.com (2603:10b6:408:e6::23) by SN7PR12MB8148.namprd12.prod.outlook.com (2603:10b6:806:351::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.31; Sun, 9 Apr 2023 15:27:43 +0000 Received: from BN8NAM11FT086.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e6:cafe::54) by BN0PR03CA0018.outlook.office365.com (2603:10b6:408:e6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:27:43 +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 BN8NAM11FT086.mail.protection.outlook.com (10.13.176.220) 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:27:43 +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.5; Sun, 9 Apr 2023 08:27:28 -0700 Received: from nvidia.com (10.126.231.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:27:26 -0700 From: Xueming Li To: Michael Baum CC: Matan Azrad , dpdk stable Subject: patch 'compress/mlx5: fix decompress xform validation' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:28 +0800 Message-ID: <20230409152529.5308-21-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.231.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: BN8NAM11FT086:EE_|SN7PR12MB8148:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ffdc56c-ac96-4f5b-7d01-08db390ef694 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ebl8TICc6MoIQfMDztU442jxAf2LvIdO4DPZOmmaPk3apak2abYuCN402BMwMUnl7BEM9AxBXS5IuYLPofwIPGKSZmwUvbG0lbchEYAdUe9zCp3KZxx4YyzGLqZD2/rgN6ICk5ak3CPgoTN5Ed0/IP9kmcXaD/+JFkS1hIK15fkfR3O9G3i6DJK9vRlyymqpXzAwn+6Y+MPM6AxygXc45rpdjoocKYKredVxBeFehhTSPkerKisndgh1ahkJaMui1pXph3kbtYbLQPRNOEAK8zuOp7BJIGBBCjcvuc7KnrBW4LB9A4XVgK217BdqrwQuF+EwpMX4AwFeOVMUfZoRuw1Thhc56UaZ7txMrv7960LwC5g+hlVKP7qsL1spLjRztHezKOdy+MolXkGDfDrOrlwXpLlDqF0SGBDUtFE9wOcyjoGUKEF4Y4Hybv+MHVBHbpGeuePUATiYCxyMxBzoKSAN+vHfZvBuCCMjVvoQ2eblYUgz5tk2Y+8aZYpaCU54j9+YT0TzFJGYa+m95KaGIxeMvO65+Op7evrMWQHS7ZW8spypHU5LDiPThqPh8mJYxspuDCzGZw+tpyI4bRQ+5xYnYbphAG2Mk8G8BQ/uNyTePLTJJJ1JxTllPxnpVSayM8zZmwuFUML1HrST0cMddM9q+fPyt+yLbcp6DI1dZ8LxcdI3mUq0y9KaGzh6P6B9+MPWB3KyJAjz1Kp6st+BkAlT7w49yKDil/4/VkrOb3gtH6y8+OmhqfSd0f8v4WO1hxbFQJprbYI03KdGgavAuQytydbjusQkI9GA/fD6L+8tHt8ZFMAVxvPPGlHwYldt18QXEvim/FeMPnyNvZLVKQ== 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:(13230028)(4636009)(396003)(346002)(39860400002)(376002)(136003)(451199021)(36840700001)(46966006)(40470700004)(36860700001)(36756003)(40460700003)(7636003)(70586007)(2906002)(5660300002)(40480700001)(8676002)(55016003)(8936002)(426003)(6862004)(82310400005)(4326008)(82740400003)(70206006)(41300700001)(356005)(86362001)(2616005)(336012)(83380400001)(966005)(47076005)(316002)(26005)(53546011)(6636002)(54906003)(37006003)(1076003)(478600001)(7696005)(6286002)(186003)(16526019); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:27:43.0277 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6ffdc56c-ac96-4f5b-7d01-08db390ef694 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: BN8NAM11FT086.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8148 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/9d7902bf42e97fc7360739d9aff0918a2bf53e27 Thanks. Xueming Li --- >From 9d7902bf42e97fc7360739d9aff0918a2bf53e27 Mon Sep 17 00:00:00 2001 From: Michael Baum Date: Tue, 21 Feb 2023 09:07:49 +0200 Subject: [PATCH] compress/mlx5: fix decompress xform validation Cc: Xueming Li [ upstream commit 12b4c48512326e810a5001f105287ee5c6fc6705 ] In xform creation, it first validate the xform according the capabilities. One of validations verifies that given "hash_algo" is "RTE_COMP_HASH_ALGO_NONE" for both compress and decompress xform objects. However, the validation for decompress checks it again for compress xform object. This patch changes it to verify decompress xform object. Fixes: 2efd26544554 ("compress/mlx5: support partial transformation") Signed-off-by: Michael Baum Acked-by: Matan Azrad --- drivers/compress/mlx5/mlx5_compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/compress/mlx5/mlx5_compress.c b/drivers/compress/mlx5/mlx5_compress.c index 459e4b5e8a..cadff83f27 100644 --- a/drivers/compress/mlx5/mlx5_compress.c +++ b/drivers/compress/mlx5/mlx5_compress.c @@ -313,7 +313,7 @@ mlx5_compress_xform_create(struct rte_compressdev *dev, DRV_LOG(ERR, "Not enough capabilities to support decompress operation, maybe old FW/OFED version?"); return -ENOTSUP; } - if (xform->compress.hash_algo != RTE_COMP_HASH_ALGO_NONE) { + if (xform->decompress.hash_algo != RTE_COMP_HASH_ALGO_NONE) { DRV_LOG(ERR, "SHA is not supported."); return -ENOTSUP; } -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.343805000 +0800 +++ 0020-compress-mlx5-fix-decompress-xform-validation.patch 2023-04-09 21:45:38.599042200 +0800 @@ -1 +1 @@ -From 12b4c48512326e810a5001f105287ee5c6fc6705 Mon Sep 17 00:00:00 2001 +From 9d7902bf42e97fc7360739d9aff0918a2bf53e27 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 12b4c48512326e810a5001f105287ee5c6fc6705 ] @@ -18 +20,0 @@ -Cc: stable@dpdk.org @@ -27 +29 @@ -index 430f769d41..06d1ff5b95 100644 +index 459e4b5e8a..cadff83f27 100644