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 0980A41D8D for ; Mon, 27 Feb 2023 08:14:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 016A841143; Mon, 27 Feb 2023 08:14:11 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2077.outbound.protection.outlook.com [40.107.243.77]) by mails.dpdk.org (Postfix) with ESMTP id 5607D40A84 for ; Mon, 27 Feb 2023 08:14:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HLFgenrVpYrJTyEbKfwTl41ph/4q7HeO3UrCdftoGn9RR4X/Pn35sg5pLZH6FxyA9EugAF3fyG7VThJH/sZtC5oi/qu+D7ClfiDBljdtTjqdYfP7jHGPUDAFrqoDbKNz/mhYY6F3D7zHjQMKQqgbG8XFwq/JTk84xq1XsMFhPRaFefNNunHODN06aZF5vLPMuSL8kmJfML0LxnBtaH0n3sQ6ubhcR7jBBM8u33SpcW0FptjMvZEV2wgV3FPGlP8xvgdUD/7oXAyHr2xR7mNT6kjLwzEsP1+eHwiuiYv4QYeW2tjT5rqwQXTEyTSdEKgrgwyMISWyfNjjmGUWemIsTg== 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=oD9I/3PHAusLC9DUjjR+83vYIRzc9YYsexSYoop7X9o=; b=jsMizjuhXqJw+tLk3pmHadrbwTDnycp1WMMgafLI/PFje5Mgyk5MU8WHbaPurzE11zcUYjPTkx6DlIxTFv9uj8M3jM8Io3Cq1MQLPT0I3j6x48gHsQpjjtglp1tW9QQi4CyY340HfubJnI99pPhYnuNwWQFqXgsvMwf4QWlZucHI3MgeFOH0+zV1mwSc9nAd+uD6dqnpJ3kXuIr1ARVTuev34sVx3s68HyttiR7G8XoZ6epq6IQqi6xZ+mnNTkyY/ZuCNDIaNaWvVdrTLKYHf/xGj7VfluazSM6ACvsZrx+KBjfssx/53JACle0r9hJNvgaQct+1E1DM3YR1yFV32Q== 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=oD9I/3PHAusLC9DUjjR+83vYIRzc9YYsexSYoop7X9o=; b=M1uGVKEuJNFuM5m/O6S9Zf7jLVyqJptBp++hZPLnpxD9W71LpZnG1HzDZQZJMdoZ0zr6UVyPpXZbP9cV1sA2C+udsE4qN/AVczk1p5zR2rapd6wm6SXxAsHG5VmuJTU825r6fjaFDrnTHU81ExAoHKpZ0fGDZ/s5Z3bSz4H+7ImwIJgysje2LtB71yp7b0Qt9AYnnl6b3mp5mrn+iAwEKxsjAEg/3oX6iYTCSh/ChHhMGPYkiyQJiN7b3aPvAluBxLSG8kY4J2wKgT2NJLh9tFgwrLxqF/WnsU6P8XAdPirRDQ06lAf4MLH61KMa6+/aW9L7xpoKUVz0mDvmBDxFoQ== Received: from BN6PR17CA0058.namprd17.prod.outlook.com (2603:10b6:405:75::47) by SA0PR12MB4382.namprd12.prod.outlook.com (2603:10b6:806:9a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:14:07 +0000 Received: from BL02EPF00010209.namprd05.prod.outlook.com (2603:10b6:405:75:cafe::ab) by BN6PR17CA0058.outlook.office365.com (2603:10b6:405:75::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:14:07 +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 BL02EPF00010209.mail.protection.outlook.com (10.167.241.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:14:07 +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.36; Sun, 26 Feb 2023 23:13:57 -0800 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, 26 Feb 2023 23:13:55 -0800 From: Xueming Li To: Suanming Mou CC: Matan Azrad , dpdk stable Subject: patch 'common/mlx5: improve AES-XTS tweak capability check' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:00:28 +0800 Message-ID: <20230227070107.15664-120-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00010209:EE_|SA0PR12MB4382:EE_ X-MS-Office365-Filtering-Correlation-Id: b0597162-25bc-4b2d-9dfd-08db18923770 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aGmBia7c3+bXQ/P3mqOI6jZ0LZ0FWuVNRSG5nc+1EOXCov9LhzPr9B/MhOFOOZHcwRErPVPJh9qqo4Ng0F95bR97NaqdgXBa5aM3/qqEY3an/3Dk1wOCiZxE/nR2ESATRHOzj37urN2pUCHFJ5jmrOMJrO5jfBdyKZZ1LHMn2YmpAkfS7Qtxyd67TY+f46E1EVjLZGTDBxreNM+YZl7bEkgHC/J/m+b+Eyk53GI99FHgyGJ0AJGfvjx6x2+ggyG5y4dPsRjMfHLAOYV1ZULLOTjq0721ViErBQu/OI7zx+/gJ8/QAtbJ2e/MtP5tu4D/1yJ3Etdp7dszyl2y25w/88ohUxRcRxJpwBslowAt72S3bf+hPyXsYftW1PWA+yti0OJ4C5HdQzglyW4JN/5KQ0r9BzrCKs2E0Vmh/tHE7xVtgC4TDaqPaxnHcaFwhFdyUxe8lJV/g4TszN7rFQ1HcmK4mbGmH99znyMFt5XvzuV7eL4iVEOGDqL/9Cv5UhaRbBmv3PnQ60w/V3tYpZu6U3tmS7gEvy6VYpmRpSlcnmgOF+b1xQmaX16597683XJmCAtPLQ6PLJnFpbsUiri7iGTCSclAcbAX13vq7EChBfH1DRZY1T1XGBiD2ViTinxOlQKLbWuJuxEv1f0+0p5z8bGSnvvf8XaRbt3J5WQWFoAIMW4iMqApnzHpoW4Iz4jDnmmD/wvEeBNHtVac8/ksX/KPA0w7QPi5OwSboKvS4sY+Jy4TLrSUDiAB1opN2b53faw4qYIZAudNK0gLs7UhQxgMFsRMKL+UtA0oO21Wjgk= 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:(13230025)(4636009)(396003)(136003)(346002)(376002)(39860400002)(451199018)(46966006)(36840700001)(40470700004)(40460700003)(36756003)(6666004)(86362001)(1076003)(966005)(53546011)(2616005)(336012)(186003)(26005)(6286002)(16526019)(41300700001)(70586007)(316002)(6636002)(54906003)(70206006)(4326008)(37006003)(7696005)(2906002)(8936002)(82740400003)(7636003)(6862004)(36860700001)(82310400005)(55016003)(478600001)(356005)(5660300002)(40480700001)(426003)(47076005)(83380400001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:14:07.5445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b0597162-25bc-4b2d-9dfd-08db18923770 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: BL02EPF00010209.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4382 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 03/01/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/commit/?h=22.11-staging&id=f3282a003f3181b8d2b52736f04bab2a6d490d5c Thanks. Xueming Li --- >From f3282a003f3181b8d2b52736f04bab2a6d490d5c Mon Sep 17 00:00:00 2001 From: Suanming Mou Date: Tue, 6 Dec 2022 03:17:24 +0200 Subject: [PATCH] common/mlx5: improve AES-XTS tweak capability check Cc: Xueming Li [ upstream commit cedb44dc87bb6f23f6381684ed9f5999613095b6 ] Bluefield-3 and above devices use aes_xts_multi_block_be_tweak bit to indicate AES-XTS capability. The devices below use aes_xts_single_block_le_tweak bit. This commit adds the AES-XTS attribute set while one of the bits is set to make the attribute compatible with all the devices. Signed-off-by: Suanming Mou Acked-by: Matan Azrad --- drivers/common/mlx5/mlx5_devx_cmds.c | 4 +++- drivers/common/mlx5/mlx5_prm.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 59cebb530f..e3a4927d0f 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -1013,7 +1013,9 @@ mlx5_devx_cmd_query_hca_attr(void *ctx, attr->flow_access_aso_opc_mod = MLX5_GET(cmd_hca_cap, hcattr, flow_access_aso_opc_mod); if (attr->crypto) { - attr->aes_xts = MLX5_GET(cmd_hca_cap, hcattr, aes_xts); + attr->aes_xts = MLX5_GET(cmd_hca_cap, hcattr, aes_xts) || + MLX5_GET(cmd_hca_cap, hcattr, aes_xts_multi_block_be_tweak) || + MLX5_GET(cmd_hca_cap, hcattr, aes_xts_single_block_le_tweak); hcattr = mlx5_devx_get_hca_cap(ctx, in, out, &rc, MLX5_GET_HCA_CAP_OP_MOD_CRYPTO | MLX5_HCA_CAP_OPMOD_GET_CUR); diff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h index 2b5c43ee6e..6ec5185a7c 100644 --- a/drivers/common/mlx5/mlx5_prm.h +++ b/drivers/common/mlx5/mlx5_prm.h @@ -1679,7 +1679,9 @@ struct mlx5_ifc_cmd_hca_cap_bits { u8 log_min_hairpin_wq_data_sz[0x5]; u8 reserved_at_3e8[0x3]; u8 log_max_vlan_list[0x5]; - u8 reserved_at_3f0[0x3]; + u8 reserved_at_3f0[0x1]; + u8 aes_xts_single_block_le_tweak[1]; + u8 aes_xts_multi_block_be_tweak[1]; u8 log_max_current_mc_list[0x5]; u8 reserved_at_3f8[0x3]; u8 log_max_current_uc_list[0x5]; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:44.764873100 +0800 +++ 0121-common-mlx5-improve-AES-XTS-tweak-capability-check.patch 2023-02-27 14:08:40.889237000 +0800 @@ -1 +1 @@ -From cedb44dc87bb6f23f6381684ed9f5999613095b6 Mon Sep 17 00:00:00 2001 +From f3282a003f3181b8d2b52736f04bab2a6d490d5c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit cedb44dc87bb6f23f6381684ed9f5999613095b6 ] @@ -13,2 +15,0 @@ - -Cc: stable@dpdk.org