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 8297C45E41 for ; Sat, 7 Dec 2024 09:06:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 763DF40281; Sat, 7 Dec 2024 09:06:23 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2062.outbound.protection.outlook.com [40.107.94.62]) by mails.dpdk.org (Postfix) with ESMTP id 801B140E5E for ; Sat, 7 Dec 2024 09:06:21 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sC9NlyHvOFUQrlzK2RNc9AEq+bg8plgjzRIYKYd5bTfXTDz6RlKe1HP/9gRFr+FFNDkNE/m7SJiUC4epz+sphHnxSG8z2m/CDSU40perPsDpzWVCm94F7VUFn/EVJ+ZKaE8vGkU6X/1LVHM2qFiX+wznOTI4bEljpzc7LMiosVOyHiI5v96+SOUdePDnA1CQBuKfOueL6+Zp+NBOvDeZlSaMRsjwJ9PLc0FrzEQylNvBIUaVFKEBbUlfL+YKIBoEzSV5kA6NBxGKF/YPsWhSbdUazKlWSLFA+hzN+QKf6X0MHYa+LiZP+iVLrZXkr5iVtEJdIjZm13PxHiqzrwi7bQ== 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=CEKbLIaZa4RsnI90aBKM7mN8w0BouPYEroEyCu7/M4A=; b=Sq4vwEPM8F8cGY3xkA9GD4KbM3ADj0yVqaBcUrufXGIwOfkS6scCAgdT1bcNmG9cGLSXfw4zCzB1cJXp8QaYkgG+Id5XRHKS2HuaXfNNEYbVoMcMO0BB2nSih5ZKz9YIiDEXl/I9d3sI6hPMLRJGIyL/H1KVPu2gdduP+43AFwfzJ/EKlJYLEX/YBat5xOA3yhw0FHeJAeyRhkYK2PJY7xmuyWb7L27GVNps7rlpZA38KO4GldUBPzv/DPgpSeqHOFFbuLUk2XfD6IaITjcdY6dVAF1Ejrxo9d5wUBwcvSO9oXd0KfpG6CNCruy4nmSN7cwo/3PrrHa20p/WGsYapQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=broadcom.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=CEKbLIaZa4RsnI90aBKM7mN8w0BouPYEroEyCu7/M4A=; b=fwfjonlSpSJyhW6pCRGkyfS1/V8dUlGQFTz7KBwtcgUd4F3gq4VGZZohyln6lmPZQ77EEPxb9WfRhiEZ8Xv9ZvDe97ZnPzXr0tX9v6m5o2M0194xRcgOuGm1AnGzJDJUkVls5qtuNS2F537IJyVJTiTFspSVx198ztAKQeDkbRLNv0+846ZQb5C9Wo0mO7zm7Q29w+D8/rH5yhcfifHR1g9JpL9Q5Jun3Zu+o3b7gdCskwQfVcOcB2/VZr9WvrdTuWfgkXu7JvSgCZ8B5XCG2eHB/TE24+Cr8mTyU6e6dqHe6ghKZvi+wjWvnHN9vDXaqnwlVyVSnU780b1+DRNtNw== Received: from BN9PR03CA0596.namprd03.prod.outlook.com (2603:10b6:408:10d::31) by BL3PR12MB6450.namprd12.prod.outlook.com (2603:10b6:208:3b9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.11; Sat, 7 Dec 2024 08:06:17 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:10d:cafe::aa) by BN9PR03CA0596.outlook.office365.com (2603:10b6:408:10d::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.12 via Frontend Transport; Sat, 7 Dec 2024 08:06:17 +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 BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) 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:06:17 +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.1544.4; Sat, 7 Dec 2024 00:06:02 -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:06:00 -0800 From: Xueming Li To: Farah Smith CC: Xueming Li , Sriharsha Basavapatna , Kishore Padmanabha , Shahaji Bhosle , Ajit Khaparde , dpdk stable Subject: patch 'net/bnxt/tf_core: fix Thor TF EM key size check' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:11 +0800 Message-ID: <20241207080055.488538-54-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: BL02EPF00021F68:EE_|BL3PR12MB6450:EE_ X-MS-Office365-Filtering-Correlation-Id: 755c236d-58fa-4e9d-8a8e-08dd169606db X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700013|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?8N+dkchqek6WqRrSdQyUt4gJ2KyJKvmteduUIIbYC5zgg6hHLmvoagRjLBuw?= =?us-ascii?Q?34uaHMhyzLS58S3MU2p06UJbOm7gbAbwg7zFOqwYrgsByYj65oLNGCp5uJ/L?= =?us-ascii?Q?O7DNS4NRqU/+vJZvCf5PdbliNURRqszVi/AKMZ5+iuRroPX9+grxooz4kTs6?= =?us-ascii?Q?ojJZ6h3d/X2oQk1PPlVdblYEC2/bZiMtZeFz/pDpv+ZUHrkBxOVUBuqrnejy?= =?us-ascii?Q?x3WuYfIAkNLVstbVA5iELveDiz87tJg54b/sduS/FG0DDPHlDTHexEpsEYEi?= =?us-ascii?Q?E52pXQ9WXS93qhKRuYJtxOC3fh77VT6v1kEMeq36sNOyxQ/uQ/dHNpi6oB+N?= =?us-ascii?Q?VyuB/NuYHU3ZhT0eE5ncgJzdOc2pO6PideE8v3s+jr0xVjwVXVnAdf6la1L2?= =?us-ascii?Q?jWzk4MPf7TXwZfKCAfFJZNgPgmGkN1hvI9bdZl0oYhMgokwHRq81W02NSBqY?= =?us-ascii?Q?11uaskmxTEERRzpJKpMEYHR7V2lsv4Abjes9UxVvqUluIwc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DK2apZHdAtP9vdk3mvJovnG3r75wrpcr/3?= =?us-ascii?Q?ljsrQI9LSTE5t1yTU4HWKJ8rEwiIUXhm?= 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:(13230040)(1800799024)(376014)(82310400026)(36860700013)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:06:17.0247 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 755c236d-58fa-4e9d-8a8e-08dd169606db 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: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6450 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=3a09e053c9262d2332217835ca2f8deb5c58df9c Thanks. Xueming Li --- >From 3a09e053c9262d2332217835ca2f8deb5c58df9c Mon Sep 17 00:00:00 2001 From: Farah Smith Date: Thu, 7 Nov 2024 19:22:11 +0530 Subject: [PATCH] net/bnxt/tf_core: fix Thor TF EM key size check Cc: Xueming Li [ upstream commit 912abed4250c792214886880fa0b93b7712fba21 ] The maximum EM key size is 640 bits for Thor. But the lookup record + the key size is 679 bits. This value must be rounded up to a 128 bit aligned number. So the size check should be 96 bytes rather than 80. This fix allows keys > 601 bits to be successfully inserted. Fixes: 539931eab3a5 ("net/bnxt: support EM with FKB") Signed-off-by: Farah Smith Signed-off-by: Sriharsha Basavapatna Reviewed-by: Farah Smith Reviewed-by: Kishore Padmanabha Reviewed-by: Shahaji Bhosle Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/tf_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_core/tf_msg.c b/drivers/net/bnxt/tf_core/tf_msg.c index 4aa90f6b07..46e9d4187a 100644 --- a/drivers/net/bnxt/tf_core/tf_msg.c +++ b/drivers/net/bnxt/tf_core/tf_msg.c @@ -25,7 +25,7 @@ */ #define TF_MSG_SET_GLOBAL_CFG_DATA_SIZE 16 #define TF_MSG_EM_INSERT_KEY_SIZE 64 -#define TF_MSG_EM_INSERT_RECORD_SIZE 80 +#define TF_MSG_EM_INSERT_RECORD_SIZE 96 #define TF_MSG_TBL_TYPE_SET_DATA_SIZE 88 /* Compile check - Catch any msg changes that we depend on, like the -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.852584306 +0800 +++ 0053-net-bnxt-tf_core-fix-Thor-TF-EM-key-size-check.patch 2024-12-06 23:26:43.963044828 +0800 @@ -1 +1 @@ -From 912abed4250c792214886880fa0b93b7712fba21 Mon Sep 17 00:00:00 2001 +From 3a09e053c9262d2332217835ca2f8deb5c58df9c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 912abed4250c792214886880fa0b93b7712fba21 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -25 +27 @@ -index 08e9783d52..dd5ea1c80e 100644 +index 4aa90f6b07..46e9d4187a 100644