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 5B928428F8 for ; Sun, 9 Apr 2023 17:28:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 56D674114A; Sun, 9 Apr 2023 17:28:01 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2076.outbound.protection.outlook.com [40.107.212.76]) by mails.dpdk.org (Postfix) with ESMTP id EE51A410EE for ; Sun, 9 Apr 2023 17:27:59 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NAsmWpuTn9yoPvuqzWF9f5/w8rSWtYum4Xk9olt4x9PY2BsDVKpZcl9oqrMe5tx33PLpblFmb5MtzjM+V2eJW+9pmrYna/IpKm/30ZmR4PN4aYutpqlIDsxxYcBfogEpjUxM7bknA6+wmDU5guvHx/yElfSL0SLvyA7F633nFtpuQKNEVpUHw/XMqriabt4paZtjt4tWyRHMIIgaG5Es60lnmR8y+CYFxwqnLorjKXSPtz37f55bA/dmSAgsMx6LSOKuexZD6Jt7EkZ4fLTFKX2qe5XG2UgUZ7lOggga6nNBdb4k5viiokFEmwd5l++7jGxD+t3LbVaxO646/R/rvw== 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=EE6KEOpbVeYL6f22tqnj1MQ7XrqX4DT2Dg7n5hqODxI=; b=eqN3Crpw3nXidttShDFXFto6qndveFMOAEIe/zvMVsAv5vXuXfyIXT18jQlZbOJduqntGYgp8AC07K2OISVR7Wkd7tTd1U3HX1uSljmQXJPMTmIKPTbFqA69DjQODbbVZaGRpquTEJo4pdrFYk2NyB4sGax6IbE/Iy4iVFJ+Jm2cF61BQ3NQbfGnbiZqVWMjfZD1KrrLKzNcYJwG6fmHi6SM3SuUaTLx8SyPVxYikMLgkY7iXvBfDMfrfma5cJWNuN7v/++jb4HsvjUOe7vR9J/90D9hwbmiW/hd0r5DhKq0FXwsmPWa4Iw7eeJrIw5fB5NlaO4v+dMvkZ5sbeA97w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.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 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=EE6KEOpbVeYL6f22tqnj1MQ7XrqX4DT2Dg7n5hqODxI=; b=K/h+XtKh15bwf5XTqX2/JPhsZa1ReTD00coy+UqujeMu8Po0IU+tnegOh4PE5rrdLDaXyUXoSOO4YCqPJ/YNTX2OzxlEeW5YHzhWIstBZGaDdVbPW8/nlf/5t9LP9NAw+/bex02XWyIcqwm36KYwP01WoaUi4KiRpJ4NpZWyGVVUFxl0zI4O0loNols8wHo2uAfEE6/rxGI50SLwusCOrf2qsVOyBy0Xs2pToTAltQ3Jp93wzv3HVqarvad8awkilBBaugVUtaR+XOm+jVvS4r9C8TH6CAOygoVhAaTSIl/6KAjDzOhzbkWBA4T66m5RcN835zdFplvPCNOAK7Bhew== Received: from BN9PR03CA0527.namprd03.prod.outlook.com (2603:10b6:408:131::22) by DM4PR12MB6421.namprd12.prod.outlook.com (2603:10b6:8:b7::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.33; Sun, 9 Apr 2023 15:27:58 +0000 Received: from BN8NAM11FT031.eop-nam11.prod.protection.outlook.com (2603:10b6:408:131:cafe::e5) by BN9PR03CA0527.outlook.office365.com (2603:10b6:408:131::22) 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:27:58 +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 BN8NAM11FT031.mail.protection.outlook.com (10.13.177.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:27:58 +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:57 -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:56 -0700 From: Xueming Li To: Gowrishankar Muthukrishnan CC: dpdk stable Subject: patch 'common/cnxk: fix auth key length' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:36 +0800 Message-ID: <20230409152529.5308-29-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: BN8NAM11FT031:EE_|DM4PR12MB6421:EE_ X-MS-Office365-Filtering-Correlation-Id: 43942373-5381-404d-e914-08db390effa0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: llP+oBI1SNdm1LImxiQyuym97HLBp6CuhBjjkKhxNwU2qtiXWScbwfMmu5XrfdpLtHzWb6wUXz/hYrQALTrYzYjrXd1rb5Lg20dgfXwBx2FDZAdKAdI30wX61oim4T1feoC+SrhdNf/iLsQI5qjHEPcSIDbMeEQyHKjUSm67R19WtDg+5fQi+1B2Ci6SBywecHxP4YCAsLGFIxFWovCAYYahUwS0CCwYmN/KogJxfJ+IukMModRiyRYgQWBSLnnhCJNQHHLhLvPMtHhJJPwzSpb9dTDVo/aJqQZ826ns2jOOyhy/v2YhBsXJcXuSdhCVjq3BL92ZHm3QTt/MOSN8BkEwA2ZnJfFPmVx5bHl3ykDg8WX3aAM+1xgVij1vZH5IrSdm4DWQaEHo4EVd/0RGOAWX25FXM0fQ/lFXnsXOMIo6aLz8+5D4dQSysGFGtcKe1KdBOeqvQ40TZLKHip8w0DS+3MKSqnIDFb2emOnZizidoGXcZ+U+WyaHf7VM4A8Ov5TAJRgluLJP/wP8dmDX4pOtzNJQP6N+IXoOKdgQ5fvN8+IbP6EcBG1ReHFIEtCBEKu8/pb+hJUJSpIhFqb8EZc6zU52oG7zo8iGbC8kR4wSrSGnfMqkjPRIwMSzdIRztk7Shj1iz1kMped+4ik3P53i3c9F9KiPm7b7+JIPkUsDaX2WXcSYA3fUzrdEjUKWiSJcF0Rigp3m8Ph4A0Xco7zKgKVvPTydGLctaMEqfJmoWrgSQH1wnIOP9wfOaEW6w0dD1izHfGyBBXuFcjaJZc9ZRChAWqUYvIb4GIZGEzPmlrbQp8V/R+eaCZNM62PSSTrmj1clDKk5AIRIEdbNLQ== 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)(39860400002)(136003)(346002)(396003)(376002)(451199021)(46966006)(36840700001)(40470700004)(2906002)(36860700001)(7636003)(356005)(5660300002)(82740400003)(70586007)(8936002)(41300700001)(4326008)(8676002)(1076003)(70206006)(426003)(316002)(2616005)(36756003)(83380400001)(47076005)(82310400005)(336012)(16526019)(26005)(186003)(7696005)(966005)(40480700001)(6286002)(40460700003)(55016003)(6666004)(86362001)(478600001)(6916009)(53546011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:27:58.2086 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 43942373-5381-404d-e914-08db390effa0 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: BN8NAM11FT031.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6421 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/6ede2ab4723fae561d2453c6d8c282c227f05ffd Thanks. Xueming Li --- >From 6ede2ab4723fae561d2453c6d8c282c227f05ffd Mon Sep 17 00:00:00 2001 From: Gowrishankar Muthukrishnan Date: Fri, 24 Feb 2023 15:10:04 +0530 Subject: [PATCH] common/cnxk: fix auth key length Cc: Xueming Li [ upstream commit 0fcaf90fe25ecaa002d765fa9759e554500e3f76 ] Auth key length is stored as 8 bit value in SE context. It should be larger enough to accommodate supported auth key length of 1024 bytes maximum, as in HMAC. Fixes: a45859312ff ("common/cnxk: add SE definitions for symmetric crypto") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/common/cnxk/roc_se.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk/roc_se.h index c357c19c0b..5b0ddac42d 100644 --- a/drivers/common/cnxk/roc_se.h +++ b/drivers/common/cnxk/roc_se.h @@ -316,16 +316,15 @@ struct roc_se_ctx { uint64_t enc_cipher : 8; uint64_t hash_type : 8; uint64_t mac_len : 8; - uint64_t auth_key_len : 8; + uint64_t auth_key_len : 16; uint64_t fc_type : 4; uint64_t hmac : 1; uint64_t zsk_flags : 3; uint64_t k_ecb : 1; uint64_t pdcp_ci_alg : 2; uint64_t pdcp_auth_alg : 2; - uint16_t ciph_then_auth : 1; - uint16_t auth_then_ciph : 1; - uint64_t rsvd : 17; + uint64_t ciph_then_auth : 1; + uint64_t auth_then_ciph : 1; union cpt_inst_w4 template_w4; /* Below fields are accessed by hardware */ union { -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:39.527491200 +0800 +++ 0028-common-cnxk-fix-auth-key-length.patch 2023-04-09 21:45:38.609042200 +0800 @@ -1 +1 @@ -From 0fcaf90fe25ecaa002d765fa9759e554500e3f76 Mon Sep 17 00:00:00 2001 +From 6ede2ab4723fae561d2453c6d8c282c227f05ffd Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0fcaf90fe25ecaa002d765fa9759e554500e3f76 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 6758142214..a0c97b26c5 100644 +index c357c19c0b..5b0ddac42d 100644 @@ -22 +24 @@ -@@ -288,16 +288,15 @@ struct roc_se_ctx { +@@ -316,16 +316,15 @@ struct roc_se_ctx { @@ -41 +43 @@ - struct se_ctx_s { + union {