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 5702A45E41 for ; Sat, 7 Dec 2024 09:06:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B52840281; Sat, 7 Dec 2024 09:06:21 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2056.outbound.protection.outlook.com [40.107.92.56]) by mails.dpdk.org (Postfix) with ESMTP id 6EC3B40281 for ; Sat, 7 Dec 2024 09:06:19 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QHcTMAtAPX8blyHyMh9/cnHohODlYDNSbWFLAs2IRRMDwFEuHl8b/k3jhXLBcC8Gd/1gNYG3btaeEPNVksaS0W8spMGgdTPhlgymfQr95/CgonxU9iwuM4PtdJeHYEFYk7dyBV8Beo7SvrwwK5IjUZnEiHubfTetNycbg3hUu9YGCzHkaen7GHTPs9UtkCfXuoLZaLc7b3M0TZ+vr8pIIPGRKcK0HxVPFMdOc9VZeXGhl49gCHoHdJMeCyDgNl5saI98cr3FolxnUiF/mWxgryG6atapKmcQ5xvKKaH3XMGvi4tXitzje3O15yXFz6cP3DGfOXpye/9XhuLRol6rfw== 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=ZoGaVKhc5TyHPAcZLabGFeGPpJziQA6PUljuMiXtZZw=; b=ZvSFI+JB5XcTDbR10efLIlaHL0oJuaB4YUzcO1uUHyS2XVEWMIwQzXNaqbcM5KktgFDhAiW46/dkDeoU7D4g9JhPDWKIsMp+mst9lLeoVDYbO25QCd2Vpl/MIMs+WfncToEo5Ims8YsK4BNclvtC4t1U3+iUakU5j8Uok5wEnWBifetD/UXOIhh4GLIh1Hzcdi4Zq8WJ4F0Gjrt0oefHiGJ+m2a80pMUzdvcmd2gw1nyVc6xD4Nak+lTINqGtsAgcVTH3GpAbvu2CWcZRXhyscM82xwlejrZMClM0eQw1PkyFFL9RDrpQMgDxfKQKM23UIfOqhLfqOjC6KeW5zXzYg== 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=ZoGaVKhc5TyHPAcZLabGFeGPpJziQA6PUljuMiXtZZw=; b=SnNtp6RKO2XdHw7DtaSkMW+9dD+mSGRHglBOlr3nTYL1/ea0DLas5V1kEPwzCCyPmYK/ZPX1/+OofW7hGkNXuPFu+PFMRmKsxoA6Ky3juSsouzNgysbA1F9Ej+IXGVvaPNVT8RYeO6LwSBbZUKDY3vUXSHca1u4JkTBS4dhCVBgNpChISlROHkJqDwTh6m3LAx997PqCz9P2HPTRbkgawvIoq8wQJ3hVhlKYAEH+ie2RtMyCnY03HXloflZULgCzF6O0cwDJbycUkL0ydCyI/oK0luCZek90VI/VFsmZ9Jafq1XWe25wFfF57mLINlOKgKAT0CtXIWbpJc0DSLoFbg== Received: from BN9PR03CA0582.namprd03.prod.outlook.com (2603:10b6:408:10d::17) by CH3PR12MB8912.namprd12.prod.outlook.com (2603:10b6:610:169::15) 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:06:15 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:10d:cafe::d2) by BN9PR03CA0582.outlook.office365.com (2603:10b6:408:10d::17) 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:15 +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:14 +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:00 -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:57 -0800 From: Xueming Li To: Shahaji Bhosle CC: Xueming Li , Sriharsha Basavapatna , Farah Smith , Kishore Padmanabha , Shuanglin Wang , Ajit Khaparde , dpdk stable Subject: patch 'net/bnxt/tf_core: fix TCAM manager data corruption' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:10 +0800 Message-ID: <20241207080055.488538-53-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_|CH3PR12MB8912:EE_ X-MS-Office365-Filtering-Correlation-Id: 54816211-f281-4849-c271-08dd1696056e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?GVCM8p7sOANYInncfLfYm/l6+a7lUMrxL8g+YBrYJapOptnVSZ9kmCcWBX3E?= =?us-ascii?Q?3PzQbEIlbtQFs0qrRSnsniH0AqekhI8XZmWFM5o/GM8LvIxaSluh0PHYstDU?= =?us-ascii?Q?cdKyTlMNdMzC5kys30E51HUDpjrU6Xe7H29GNtSZdqcUqDguiyKTv1XjOWUO?= =?us-ascii?Q?GQLB2H3ARcUvpm1n9dJs8rM4IDgybaTaT0uo1n2U7dsv7Luo5HjJ+4JUXthE?= =?us-ascii?Q?tLi7SbyP8NrUcUGjf2XktUDTrTBv8oOrovyjoj3ZR46YN07n4f5zsn4YNd7B?= =?us-ascii?Q?r2hertOnTmrooLeR+wpxxBIKJ2OF1hRH16rLmVOA3qEjjqRNPBZs8xTPynHv?= =?us-ascii?Q?utFmNpAYI3FTZIqWkyF9weQH9fvcJuPfzhKFX3iG+RIwEk33j9tctJb24rVk?= =?us-ascii?Q?FhmDIHB35RYLUy3QSZbuCYILzyzpLTlyjmUKDSCK9NHgaIOlnifK7o1x+YfA?= =?us-ascii?Q?HRtmd8OUH4GOBH253v9Ey0V+UYwVpLwzuXsIa6SMvySjFYAl/YCE3LppfwbB?= =?us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nqPFXDwpVJerlm3tesZvpmcT?= =?us-ascii?Q?Yq0OlUrTssnmzErBhmrPglVN/xz4u+Wh?= 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)(36860700013)(82310400026)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:06:14.5872 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54816211-f281-4849-c271-08dd1696056e 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: CH3PR12MB8912 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=f912142dc89ac8f14242b40e523ee192a0c46d55 Thanks. Xueming Li --- >From f912142dc89ac8f14242b40e523ee192a0c46d55 Mon Sep 17 00:00:00 2001 From: Shahaji Bhosle Date: Thu, 7 Nov 2024 19:22:09 +0530 Subject: [PATCH] net/bnxt/tf_core: fix TCAM manager data corruption Cc: Xueming Li [ upstream commit 0bee506e9ec6bca60111b63e631c84080b14aec2 ] Max entries per session were not getting initialized to 0, when the sessions were closed. Reset max entries counter session when the session is initialized Fixes: 97435d7906d7 ("net/bnxt: update Truflow core") Signed-off-by: Shahaji Bhosle Signed-off-by: Sriharsha Basavapatna Reviewed-by: Farah Smith Reviewed-by: Kishore Padmanabha Reviewed-by: Shuanglin Wang Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/tf_core/cfa_tcam_mgr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c index f26d93e7a9..9df2d2b937 100644 --- a/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c +++ b/drivers/net/bnxt/tf_core/cfa_tcam_mgr.c @@ -909,6 +909,7 @@ cfa_tcam_mgr_init(int sess_idx, enum cfa_tcam_mgr_device_type type, /* Now calculate the max entries per table and global max entries based * on the updated table limits. */ + cfa_tcam_mgr_max_entries[sess_idx] = 0; for (dir = 0; dir < ARRAY_SIZE(cfa_tcam_mgr_tables[sess_idx]); dir++) for (tbl_type = 0; tbl_type < ARRAY_SIZE(cfa_tcam_mgr_tables[sess_idx][dir]); @@ -958,8 +959,8 @@ cfa_tcam_mgr_init(int sess_idx, enum cfa_tcam_mgr_device_type type, if (parms != NULL) parms->max_entries = cfa_tcam_mgr_max_entries[sess_idx]; - CFA_TCAM_MGR_LOG(INFO, "Global TCAM table initialized for sess_idx %d.\n", - sess_idx); + CFA_TCAM_MGR_LOG(DEBUG, "Global TCAM table initialized for sess_idx %d max entries %d.\n", + sess_idx, cfa_tcam_mgr_max_entries[sess_idx]); return 0; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.821620507 +0800 +++ 0052-net-bnxt-tf_core-fix-TCAM-manager-data-corruption.patch 2024-12-06 23:26:43.963044828 +0800 @@ -1 +1 @@ -From 0bee506e9ec6bca60111b63e631c84080b14aec2 Mon Sep 17 00:00:00 2001 +From f912142dc89ac8f14242b40e523ee192a0c46d55 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0bee506e9ec6bca60111b63e631c84080b14aec2 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org