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 15DA545E41 for ; Sat, 7 Dec 2024 09:05:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E6D340281; Sat, 7 Dec 2024 09:05:40 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2079.outbound.protection.outlook.com [40.107.92.79]) by mails.dpdk.org (Postfix) with ESMTP id 2398940E4D for ; Sat, 7 Dec 2024 09:05:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AZEwdTJ8iVq41W3Im7jcwnFZUyStUSxN0POuPEDp62rXeVLkRFxtCu9Job6POrKtgRatVmY0a3ojxyVG7nNhcuzk0sP3R44mi/ONz0Jo0zJs44CAWy0TsfHEI87a2NIljiOMI/qu8oHjrMlk1nodMbfQV+xyyW1uGMLmzSLPwzsNOOc8fVVIYKYPgEq3mdrstg1rl5USNP9lSiBSgqgCcfHwnQOcwba7I1eAEUJJc9SI4qFEIhLgkwVnv/HHG8Tvj250tn5z8/8oyJ28iHLLM2wXWbJO4FzbmdtZLDr18S8bpWgGWuNkfrjRsbECj4Iz9/uN9GMmyh2ZOFi6EYJloA== 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=jcCuxtu1buBrtQaLkiP4sOIXHmib/bFa8p1Z5irnRGU=; b=oUkTiw8nvceaHy8pkgAQL2eNgb3z3GXNdvNRNBsGE1vLB8jQC5E0vWl4XQeHFydydCMWKOwD19ZkVZOaSAOGFIPJG4XoAfCLGD7jemgWK8mm8PPj40My/q4dkmOqgbDP0lji8jQwKjh2cirT1RI6iENd3t3gxnBTWVFMeMJHyvX6F3eJFavrHeHP9Rgbpz5lT8FcUB/YJ4PvU0ihlnKzzYvJICH7Wk5o536SibPQiad5GX19I3ArKl76VLR+u7Q0eJ3tLJ01gmg7coZ5zWHGAmQYiv7Wmo1QLHiyLV/IMCL+z95QJGaTuK5jnGzeNkwcACNeiRiLBcySsXFiXYXWTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com 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=jcCuxtu1buBrtQaLkiP4sOIXHmib/bFa8p1Z5irnRGU=; b=DJBYWyFPQS9fFufyfgQU6U00hpJ9UpFncnZsdMnCqT147Q9GH83SjHgR1RmiWOz0Ogl7qdv6XR5/rolk1ozxiIodzZTU2Yltw4lxKdpqz7x6nUGB7EWTETJX9WTHKjHAab5ndNZzcWr91O9xvfUkp2gZIjwsA2BvCB5Dv6+v/nwMc7cad517sF8pgSKmpujUsiCyYrtq0mlyfduw3QfL6zg6gDQ6e4kgkYYy89eG6n5fPp85JTCuou8xCgbVut54ch3iPcDX+FzXl2N4WrkGtNxh0Iqgk7dHrVYdypQuoEqLsIsuDiEqy1Mdq0vUl1EOC1AYbjcbwYZcbYjd0lpxBA== Received: from CY5PR18CA0058.namprd18.prod.outlook.com (2603:10b6:930:13::31) by CY8PR12MB7121.namprd12.prod.outlook.com (2603:10b6:930:62::20) 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:05:34 +0000 Received: from CY4PEPF0000E9DB.namprd05.prod.outlook.com (2603:10b6:930:13:cafe::18) by CY5PR18CA0058.outlook.office365.com (2603:10b6:930:13::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.15 via Frontend Transport; Sat, 7 Dec 2024 08:05:34 +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 CY4PEPF0000E9DB.mail.protection.outlook.com (10.167.241.74) 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:05:34 +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.1544.4; Sat, 7 Dec 2024 00:05:26 -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:05:24 -0800 From: Xueming Li To: Arkadiusz Kusztal CC: Xueming Li , dpdk stable Subject: patch 'crypto/qat: fix modexp/inv length' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:05 +0800 Message-ID: <20241207080055.488538-48-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: CY4PEPF0000E9DB:EE_|CY8PR12MB7121:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b0c14b6-a08b-45c7-029d-08dd1695ed83 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|36860700013|376014|82310400026|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?NRO2x6v599VvkB8ciywyJ4jNCxsSCPS4ENLnlzE8Exo4TebuYIgniCm3RzYy?= =?us-ascii?Q?SmiWYNxbRXXRp7DvWAn0buZp0tA5N4CkTpE1bVgwUbb2D34xjw6ALqJN2i6s?= =?us-ascii?Q?cSpt4afkI/9zNJv8V7NA0TF/Th9+BTq1RP9xdktEPpd8jy6DwOrtvPNGfs3D?= =?us-ascii?Q?DTaL5t9JCREIFOhksPlO2lVNGn4whl5bUghCoeHz6uTLfMaN4Pt4ZUU/pFTP?= =?us-ascii?Q?4AIqWalsUIVohKWjcfuyLmHowGw9lW8Sib1+5MrutzofRDtjhFGWUeuX6x0A?= =?us-ascii?Q?8YRKlhb2fuyXIHC7+ADFLOHdrT63+DCCxGnjzb33a+9dmWkp1cyATPXou8qc?= =?us-ascii?Q?HJklziRCoc8lZarrRaH7cskSP1UZvR7BwnG6H04ZFTgvqV9topiK7rz0q9au?= =?us-ascii?Q?qiKyvVQyld4AJ3hbvunkPs+DK+pP65I8PtglRZYn7wHPecL8heHvn4oP1oV8?= =?us-ascii?Q?GXAF8hPBK3Llr/JzdVIg8H8BiXYblzm2P3DG1Ob8GYj5KlSqQlE0md7biG+m?= =?us-ascii?Q?oyP1+oQNxvCR7gLMeBbnK8nqSvawuA/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4dTijJ64ntDltqvgq5boX?= 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:(13230040)(1800799024)(36860700013)(376014)(82310400026)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:05:34.6108 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b0c14b6-a08b-45c7-029d-08dd1695ed83 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: CY4PEPF0000E9DB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7121 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=aaffe2a33859e8a78c0bb741fc16846d802f8050 Thanks. Xueming Li --- >From aaffe2a33859e8a78c0bb741fc16846d802f8050 Mon Sep 17 00:00:00 2001 From: Arkadiusz Kusztal Date: Thu, 31 Oct 2024 19:19:17 +0000 Subject: [PATCH] crypto/qat: fix modexp/inv length Cc: Xueming Li [ upstream commit 5b2fe7ef3c1b731f086d9454262a530a082b0441 ] This commit fixes an unset length in modular algorithms in QAT asymmetric crypto PMD. Fixes: 3b78aa7b2317 ("crypto/qat: refactor asymmetric crypto functions") Signed-off-by: Arkadiusz Kusztal --- drivers/crypto/qat/qat_asym.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c index 5d240a3de1..38c23b397b 100644 --- a/drivers/crypto/qat/qat_asym.c +++ b/drivers/crypto/qat/qat_asym.c @@ -270,6 +270,7 @@ modexp_collect(struct rte_crypto_asym_op *asym_op, rte_memcpy(modexp_result, cookie->output_array[0] + alg_bytesize - n.length, n.length); + asym_op->modex.result.length = alg_bytesize; HEXDUMP("ModExp result", cookie->output_array[0], alg_bytesize); return RTE_CRYPTO_OP_STATUS_SUCCESS; @@ -331,6 +332,7 @@ modinv_collect(struct rte_crypto_asym_op *asym_op, - n.length), cookie->output_array[0] + alg_bytesize - n.length, n.length); + asym_op->modinv.result.length = alg_bytesize; HEXDUMP("ModInv result", cookie->output_array[0], alg_bytesize); return RTE_CRYPTO_OP_STATUS_SUCCESS; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.669805008 +0800 +++ 0047-crypto-qat-fix-modexp-inv-length.patch 2024-12-06 23:26:43.953044828 +0800 @@ -1 +1 @@ -From 5b2fe7ef3c1b731f086d9454262a530a082b0441 Mon Sep 17 00:00:00 2001 +From aaffe2a33859e8a78c0bb741fc16846d802f8050 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 5b2fe7ef3c1b731f086d9454262a530a082b0441 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index 9e97582e22..7bb2f6c1e0 100644 +index 5d240a3de1..38c23b397b 100644 @@ -21 +23 @@ -@@ -277,6 +277,7 @@ modexp_collect(struct rte_crypto_asym_op *asym_op, +@@ -270,6 +270,7 @@ modexp_collect(struct rte_crypto_asym_op *asym_op, @@ -29 +31 @@ -@@ -338,6 +339,7 @@ modinv_collect(struct rte_crypto_asym_op *asym_op, +@@ -331,6 +332,7 @@ modinv_collect(struct rte_crypto_asym_op *asym_op,