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 7048545E41 for ; Sat, 7 Dec 2024 09:05:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66CE640281; Sat, 7 Dec 2024 09:05:11 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2066.outbound.protection.outlook.com [40.107.102.66]) by mails.dpdk.org (Postfix) with ESMTP id 5ECFC40E64 for ; Sat, 7 Dec 2024 09:05:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bVWPrvZ31EzLOWBpDeNUnDL/iFnTHLIirR2nTJt+V8boQx0J2/q3MzF3WISKfggH6q+YcVKToYRxCmHUjowO0zkMXfRmqhRy2lD/sBe+a8AbyMqUNr43O6oTnIkI0v82ARIfntH5BNu+VSO1cCOf+AuNgisirJBg1vX8xwVGYo1MT5nm5x9sx4jQuW0Tc9Ae04Bc9cqvIq6ES72aT6LiBlTkZEhUJU3MORX1HCM2NNzLsI7c2p5Rj9kGg8WYhsU9JE2x63TrU7TZJKR+RPXKOgPXaQEFxNi6ufrMiDQzPHWeSP/LZAtbELhhPO3SsmNvNNUN9mgiwJKeDK3FA1mQxw== 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=TKzcJASzL+ZBTm519BnVpVtL50nikvaahPW9E/t/YQw=; b=Vl7p/gR502D/yLWqQatkzLnUaznimdF+txZApw2Iulub9LZNhfATEWXVVoq/6HLNRZ2by2Dsu2kyLpYyDKftrn+HyLCOFDzADH/geqCGHy+iW07r1osovJlOeWmLADX6IQuGXVhbmY/KmaeAREpbS10sIGqlsAzU9bWE3AWAHs68pmNc0NfExecN3pKDssrBv/h8YWX1VlKNl+VBbq97889RV21EkZJmnSATr/jsbD6CU+j95w1TMvZ1S0hdOhsD5+QNNValxfw32I8SImeGEzVBQM96lbPqOqMDg0tXMq4DendmVSPCf1Oabr8eg7ig+tJcs8oRqB1dEpt7bXntAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=huawei.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=TKzcJASzL+ZBTm519BnVpVtL50nikvaahPW9E/t/YQw=; b=cwUspdD9W6KWv+GY+vhmnsORrrcGp/TICh5gQdL8KeasJytkb9Hk2xqu/9cuMkeR+vA45Nf3XuF6weE9rtM2vfvY1JZNEZI55xp/IibJzKzBxI0HfwfjYe6MXS4/UW0Rt45kG6rOiWZDT2MvYqq1BqjwRcvxuOSnsbKhbjBq2KY1BEBGiWYbybaKyCHG0J4mp6qFdemSy6MTASi03kLyZue4FRYfYrdHPGfxsULTQaK/T3f2rlO7oJ8BMiJgDyKv3lUhisNj+90biMb7KNu+zvscybiJZuWGO0QPJzLEqCd78CXsmCi29MDfN4Fwd/X0OTDOKeaM5Z7t7kB9MueVpg== Received: from DS0PR17CA0001.namprd17.prod.outlook.com (2603:10b6:8:191::19) by SA1PR12MB6845.namprd12.prod.outlook.com (2603:10b6:806:25c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.23; Sat, 7 Dec 2024 08:05:05 +0000 Received: from CY4PEPF0000E9D7.namprd05.prod.outlook.com (2603:10b6:8:191:cafe::20) by DS0PR17CA0001.outlook.office365.com (2603:10b6:8:191::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.10 via Frontend Transport; Sat, 7 Dec 2024 08:05:05 +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 CY4PEPF0000E9D7.mail.protection.outlook.com (10.167.241.70) 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:04 +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:04:59 -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:04:57 -0800 From: Xueming Li To: Dengdui Huang CC: Xueming Li , Jie Hai , "Stephen Hemminger" , dpdk stable Subject: patch 'net/hns3: fix fully use hardware flow director table' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:00 +0800 Message-ID: <20241207080055.488538-43-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: CY4PEPF0000E9D7:EE_|SA1PR12MB6845:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b085b25-a721-426d-9224-08dd1695db7c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|36860700013|82310400026|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?xP7K/0Svp/LxIvawDyqhSmyvUC+0jKr+76SVD0SqLQuKj4fWrD70SNgvxe9B?= =?us-ascii?Q?QYkLCrwagTmic9VgjyggHZtJOu0Rl6FL3BNcuzKlY0o5NB/J/7FTCCLVP7p6?= =?us-ascii?Q?C3IHLbXtcNFcIBeAnNBinynAQ7jAN2agN3v9O8eY+GPeQLIu8ZPOy8/tZdzV?= =?us-ascii?Q?Ka/JYxBZH+B3Qg7kH882X7JJW3UPXeUrugr5aBbLpAhEkmVAxW7djxgFoKJD?= =?us-ascii?Q?eEF4G3HsB9MPq8Akt9f0HBv9BJrqatTnfhQ2LborLHJJ/rGNu8aw80YnvHG/?= =?us-ascii?Q?nBh3I1erfUJjz3MOnVXUs8bKAvuiybyyMRaJa103BvikyG7hWvUkAfPZH6t5?= =?us-ascii?Q?zkJXRJyW3rnKKHAskbu/6KCvVaBZOqr35REvkEMqoiIjDGTdt8/tP2HGX/RQ?= =?us-ascii?Q?nKCDVDF3MjblTAGCeBBpzPPqRivW3zylLF1ZR2XvI/ckLbc3R/1WoNiWFB0w?= =?us-ascii?Q?lEkPia+ke3jD8bkVg8saIZqtLMOyY7NGcG1dNzEOIeq27bY1LXLTIiM7HhEX?= =?us-ascii?Q?4QRsMRFQvYf7SX5NNb3OkFbmPGQVk+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5hPUWPIeCR4xb+00Fqq2r4kvQIEH/mJU?= 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)(376014)(1800799024)(36860700013)(82310400026)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:05:04.4009 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b085b25-a721-426d-9224-08dd1695db7c 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: CY4PEPF0000E9D7.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6845 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=50a97b8bc45fe9f2b1ba934029eaac251c146ae6 Thanks. Xueming Li --- >From 50a97b8bc45fe9f2b1ba934029eaac251c146ae6 Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Thu, 7 Nov 2024 19:56:45 +0800 Subject: [PATCH] net/hns3: fix fully use hardware flow director table Cc: Xueming Li [ upstream commit b8e60c33168a2999604c17322dd0198a6746428f ] The hns3 driver checks whether the flow rule is repeatedly inserted based on rte_hash. Currently, the rte_hash extendable bucket table feature is not enabled. When there are many hash conflicts, the hash table space cannot be fully used. So the flow rule maybe cannot be inserted even if the hardware flow director table there are still free. This patch fix it by enabling the rte_hash extensible bucket table feature. Fixes: fcba820d9b9e ("net/hns3: support flow director") Signed-off-by: Dengdui Huang Signed-off-by: Jie Hai Acked-by: Stephen Hemminger --- drivers/net/hns3/hns3_fdir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hns3/hns3_fdir.c b/drivers/net/hns3/hns3_fdir.c index d100e58d10..75a200c713 100644 --- a/drivers/net/hns3/hns3_fdir.c +++ b/drivers/net/hns3/hns3_fdir.c @@ -836,6 +836,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns) .key_len = sizeof(struct hns3_fdir_key_conf), .hash_func = rte_hash_crc, .hash_func_init_val = 0, + .extra_flag = RTE_HASH_EXTRA_FLAGS_EXT_TABLE, }; int ret; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.507857710 +0800 +++ 0042-net-hns3-fix-fully-use-hardware-flow-director-table.patch 2024-12-06 23:26:43.933044828 +0800 @@ -1 +1 @@ -From b8e60c33168a2999604c17322dd0198a6746428f Mon Sep 17 00:00:00 2001 +From 50a97b8bc45fe9f2b1ba934029eaac251c146ae6 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b8e60c33168a2999604c17322dd0198a6746428f ] @@ -15 +17,0 @@ -Cc: stable@dpdk.org @@ -25 +27 @@ -index d18d083535..aacad40e61 100644 +index d100e58d10..75a200c713 100644 @@ -28 +30 @@ -@@ -900,6 +900,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns) +@@ -836,6 +836,7 @@ int hns3_fdir_filter_init(struct hns3_adapter *hns)