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 9A67046A63 for ; Thu, 26 Jun 2025 14:05:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FD3E402A3; Thu, 26 Jun 2025 14:05:36 +0200 (CEST) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2088.outbound.protection.outlook.com [40.107.100.88]) by mails.dpdk.org (Postfix) with ESMTP id 0D918400D6 for ; Thu, 26 Jun 2025 14:05:35 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=yaKz6e4Os6Ti6EykO7exY/vsy3gOF0w0RwqUaNK3HNvq+aAccKFONFxaYQDDvPIyPqeq+zM3oSWzawsGvnKdMqgmPW/CMFRVpC5XmsjQf5S4VuacnauZfaFPfb2pkZ7Bq/nZ21cgENsqRgXFMELvAWrRWvOKCN7b770zPfvyUA09JT04+112lm2L5wfuATJyCDlDNf2JI+d1O3ZHMG60+iSCi7LMbJUb11CN5R3TwItv9gDJb+ggD30DK160TJ9HyJjJqZRCL6zc0Nu9lp6FHYvZBmQhsECmP+Hj/sxpuiCub+hMpJ/cKi7a41AETRwstC06rbVBez2SwUtrOyb90Q== 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=q+6mmp+6e43otLqCBDyhevDKVzdI7V4bdwPnhgPYWCg=; b=WeCmbZlW/pTKldAgYHJLCiqxCN6YcI9sMMhGMVKLA35S85M0NFAe4QnphD53l17nyOoi7XbpVKagqMalnM4poxkK/h5uL87FE3ZLoZyG2ZLFoxNz28fB+JL03Q0jt3wGsxTTtVdGYygqtCaSO/sdvtqtIgKC3y3711CW02Lp1QfCNr9hQDf1bRWWHE9FOOJGkvxVcQuGonUi8MnY5sLluzwUS0aeU5FJsvFb9wGR+OTnRU5zJsJT3cZk/QNIjP+21ZnZLfj1ilDmnD+SGUV6ZPKUXDgoRzwNge14D2G945UdriiK2Ag4kXdijhrAgMzJsTiGvGlVBKTbOjHoODRPNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=q+6mmp+6e43otLqCBDyhevDKVzdI7V4bdwPnhgPYWCg=; b=I68mpE1mvAioCIKqQi+yMldVK64r1Pav4GpLXr2T7pJ/qNP7gFa4kqiiaN0BKa1lN5JL7rh5U+gbjUc8zsXKCR18vJinXY0wHrhkZ2C5Aq9uqP07O+bnF4b+Cr787PIPrw6lCFgUlLwovHZHY2C/VVEiJuG+a1FEXWWGzZyOcNvh3QTBJhKOyjDv667A6c1wOPngAggUyZuTASCCiGsgGKh1d8mUDclYj0JUABndmbzZ9JGKGqvv+i6JQpSHPoMr3kXFt6DsjSH/PwcDnPlYJLI0sXkx+WUlrRzHoqEabfrZP5vDqwwcvwNznEogj45ETtZZljfPq7zUNQQVPvULCA== Received: from SJ0PR03CA0162.namprd03.prod.outlook.com (2603:10b6:a03:338::17) by MN2PR12MB4256.namprd12.prod.outlook.com (2603:10b6:208:1d2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8857.29; Thu, 26 Jun 2025 12:05:29 +0000 Received: from SJ5PEPF000001D3.namprd05.prod.outlook.com (2603:10b6:a03:338:cafe::4f) by SJ0PR03CA0162.outlook.office365.com (2603:10b6:a03:338::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8880.20 via Frontend Transport; Thu, 26 Jun 2025 12:05:28 +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 SJ5PEPF000001D3.mail.protection.outlook.com (10.167.242.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8880.14 via Frontend Transport; Thu, 26 Jun 2025 12:05:27 +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; Thu, 26 Jun 2025 05:05:12 -0700 Received: from nvidia.com (10.126.230.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.14; Thu, 26 Jun 2025 05:05:10 -0700 From: Xueming Li To: Dengdui Huang CC: Xueming Li , dpdk stable Subject: patch 'net/hns3: fix memory leak for indirect flow action' has been queued to stable release 23.11.5 Date: Thu, 26 Jun 2025 20:00:57 +0800 Message-ID: <20250626120145.27369-38-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250626120145.27369-1-xuemingl@nvidia.com> References: <20250626120145.27369-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: SJ5PEPF000001D3:EE_|MN2PR12MB4256:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b921b2e-7f93-4ec7-2a91-08ddb4a9bd6a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|82310400026|36860700013|7053199007|13003099007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?DtNronNFAR08MFHqbcskv/Ijyqos3u4aZKwnntGkqsxh0N/3gBQL63a02JMQ?= =?us-ascii?Q?hac825BLrGF5e81L/ucNTu1eIpsM5CmY8PftyZ9C4JePRZ94AsYL+Fx7rWVO?= =?us-ascii?Q?G4kxYyNkj3gSV6ESUhehndPgbe+jeqnZsV5DutU2l9t35jCl/oujf3H1Y2LQ?= =?us-ascii?Q?eXjTi+pd0gZnf8tV8ajwvI3oztK707gevbxRJ/n1Hz3vTpUV0//t0DQButRO?= =?us-ascii?Q?1RTvixjZGrCMIVreuWa+O+Shem4WdmC9zcBdqKkDgvfi9Brfo5sQOlNBrIDc?= =?us-ascii?Q?VmL9Af/Xk8cNKzIfRbYVULcWFNqtwzaDQ+b6LYxfggVcIZIFuIJDNpPTifKM?= =?us-ascii?Q?ZdGQ3aj8yXWaxkb0uoZjKXmLw2nW0TkqOrx5jrRhZJLboCQLZrnEaoQVXThJ?= =?us-ascii?Q?mjmAh3b5Gt5md4bOFadV6O8HKtHyQZ5/XfC2HqpVTjpoB3LRxmOn6M3V0B8v?= =?us-ascii?Q?4X1xB5/+bRX1fVdlH70E89Yw+bCiT49JZ5DEMM+s2/dJrPKLw8cpout6scDW?= =?us-ascii?Q?T99ihXhCSZ1y6VvbJw/haYqMjYobT+gcB3VoyIcZyZH9Ii5EzaYRsqE91zuS?= =?us-ascii?Q?CQ2ZtTPekpF9QQkeIyX363r6xhIpaC3OZKEiYVfFssUGRUXRLAoRWkBHUFuG?= =?us-ascii?Q?CNgleDAT+/dU1xQNaT6yTFW/LdEeG7L/saho1kIsbqdi11fc0ojEhfWgQV0x?= =?us-ascii?Q?BxXw9tgPFKYN4QhEOsGpJ0Pzp/dFQHIGFB9+LRVS4AHxP+Gk2Tuj9K8dGMs0?= =?us-ascii?Q?pfCB6d3ioJwumxEpWH7yLCYOqa2Qj5ecJqGeQFdaHQN2RUfQvK9imR0qVQL5?= =?us-ascii?Q?N2Q7ZwnEVKCipQXCAmgtTQ8CtNclyCW5fne/keu9pND3oPe/+aSVSAq59m4m?= =?us-ascii?Q?VSO+cgnFyNr5yLht7niFM2ftBP+9jy6Rj507aiddYnD1S7v3ZwZrt+lZ6G2i?= =?us-ascii?Q?XZMlVArcx5fMFixoMrnTOZZXpPU80LJ7WF9UieoIpVGck68aW9uzRMNN65BB?= =?us-ascii?Q?8FwvkMhy41KoQMDxNfM7aLMRdKPJjTwa3Dmjcy/wMWPF6FilDwh7Ge0IuLyS?= =?us-ascii?Q?EBOpePaqA10T6WCQO9BqVgp0uHxSnFMYB2Tgk9i2uSWZRdUt1plAf4pLVDEf?= =?us-ascii?Q?+qeYlBhYO67kS/MC3iN/8IjypGHvRazWFgdYVT9TziRaCJk6NWTxHDIYuWVs?= =?us-ascii?Q?G6OAfUSOXzDbAZO/nAhPDSl1whUzrzxRDHo7LUuV1vsUrTmxZVRXXTEQXvgE?= =?us-ascii?Q?FkZEUXSYuJCmJuvvQE+mqNhqp+NOD6evt2/iIbJMF8pZZ5tqLpcLvTDNP6At?= =?us-ascii?Q?Ut2wdwtFOFdkINkxFpmyqCFZGaQCOqLQQl1J0aetkpjufn8J6XSkVkMu6Dty?= =?us-ascii?Q?rqyKcMXBI0/D7j2TrBVXK15IajnNiUnTrw/Gyzwrc4VV2HJ4g2hVvC5ss0NV?= =?us-ascii?Q?cvYt5G62uGO+CBGqfj7qTqx9H3zxpIswbZi+q2x/47myOyvqKImTUvusOG99?= =?us-ascii?Q?UehTexLY9ISly2AHPdhWZRgL74nGbD5Yv+ataw2zQo1Xs3dCKpA+xrbEjA?= =?us-ascii?Q?=3D=3D?= 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)(13003099007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2025 12:05:27.6397 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2b921b2e-7f93-4ec7-2a91-08ddb4a9bd6a 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: SJ5PEPF000001D3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4256 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.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/28/25. 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=58f5aa2d977c5b1fc1a478a754f5239b608df87d Thanks. Xueming Li --- >From 58f5aa2d977c5b1fc1a478a754f5239b608df87d Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Tue, 8 Apr 2025 16:30:57 +0800 Subject: [PATCH] net/hns3: fix memory leak for indirect flow action Cc: Xueming Li [ upstream commit 18596f7be8f93e159e98704af12b1cc8af289dd6 ] Currently, when the application creates an indirect action, the hns3 driver allocates a memory for the structure rte_flow_action_handle and returns this structure pointer to application. When the application invokes the destroy function to destroy the indirect action, the driver releases the memory. However, when the application destroys all flows by using the flush function before destroying the indirect action, the memory is not released. This patch fix it by using uint64_t instead of rte_flow_action_handle* to store indirect action avoids memory leakage. Fixes: fdfcb94d8fb3 ("net/hns3: support indirect counter flow action") Signed-off-by: Dengdui Huang --- drivers/net/hns3/hns3_flow.c | 41 ++++++++++++++++-------------------- drivers/net/hns3/hns3_flow.h | 9 ++++++-- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/net/hns3/hns3_flow.c b/drivers/net/hns3/hns3_flow.c index db318854af..b5a46e5ff1 100644 --- a/drivers/net/hns3/hns3_flow.c +++ b/drivers/net/hns3/hns3_flow.c @@ -470,19 +470,20 @@ hns3_handle_action_indirect(struct rte_eth_dev *dev, struct hns3_fdir_rule *rule, struct rte_flow_error *error) { - const struct rte_flow_action_handle *indir = action->conf; + struct rte_flow_action_handle indir; - if (indir->indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) + indir.val64 = (uint64_t)action->conf; + if (indir.indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION_CONF, action, "Invalid indirect type"); - if (hns3_counter_lookup(dev, indir->counter_id) == NULL) + if (hns3_counter_lookup(dev, indir.counter_id) == NULL) return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION_CONF, action, "Counter id not exist"); - rule->act_cnt.id = indir->counter_id; + rule->act_cnt.id = indir.counter_id; rule->flags |= (HNS3_RULE_FLAG_COUNTER | HNS3_RULE_FLAG_COUNTER_INDIR); return 0; @@ -2548,20 +2549,12 @@ hns3_flow_action_create(struct rte_eth_dev *dev, struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); struct hns3_pf *pf = HNS3_DEV_PRIVATE_TO_PF(dev->data->dev_private); const struct rte_flow_action_count *act_count; - struct rte_flow_action_handle *handle = NULL; + struct rte_flow_action_handle handle; struct hns3_flow_counter *counter; if (hns3_check_indir_action(conf, action, error)) return NULL; - handle = rte_zmalloc("hns3 action handle", - sizeof(struct rte_flow_action_handle), 0); - if (handle == NULL) { - rte_flow_error_set(error, ENOMEM, RTE_FLOW_ERROR_TYPE_HANDLE, - NULL, "Failed to allocate action memory"); - return NULL; - } - pthread_mutex_lock(&hw->flows_lock); act_count = (const struct rte_flow_action_count *)action->conf; @@ -2584,15 +2577,14 @@ hns3_flow_action_create(struct rte_eth_dev *dev, } counter->indirect = true; - handle->indirect_type = HNS3_INDIRECT_ACTION_TYPE_COUNT; - handle->counter_id = counter->id; + handle.indirect_type = HNS3_INDIRECT_ACTION_TYPE_COUNT; + handle.counter_id = counter->id; pthread_mutex_unlock(&hw->flows_lock); - return handle; + return (struct rte_flow_action_handle *)handle.val64; err_exit: pthread_mutex_unlock(&hw->flows_lock); - rte_free(handle); return NULL; } @@ -2602,18 +2594,20 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, struct rte_flow_error *error) { struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); + struct rte_flow_action_handle indir; struct hns3_flow_counter *counter; pthread_mutex_lock(&hw->flows_lock); - if (handle->indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) { + indir.val64 = (uint64_t)handle; + if (indir.indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) { pthread_mutex_unlock(&hw->flows_lock); return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION_CONF, handle, "Invalid indirect type"); } - counter = hns3_counter_lookup(dev, handle->counter_id); + counter = hns3_counter_lookup(dev, indir.counter_id); if (counter == NULL) { pthread_mutex_unlock(&hw->flows_lock); return rte_flow_error_set(error, EINVAL, @@ -2628,8 +2622,7 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, handle, "Counter id in use"); } - (void)hns3_counter_release(dev, handle->counter_id); - rte_free(handle); + (void)hns3_counter_release(dev, indir.counter_id); pthread_mutex_unlock(&hw->flows_lock); return 0; @@ -2642,12 +2635,14 @@ hns3_flow_action_query(struct rte_eth_dev *dev, struct rte_flow_error *error) { struct hns3_hw *hw = HNS3_DEV_PRIVATE_TO_HW(dev->data->dev_private); + struct rte_flow_action_handle indir; struct rte_flow flow; int ret; pthread_mutex_lock(&hw->flows_lock); - if (handle->indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) { + indir.val64 = (uint64_t)handle; + if (indir.indirect_type != HNS3_INDIRECT_ACTION_TYPE_COUNT) { pthread_mutex_unlock(&hw->flows_lock); return rte_flow_error_set(error, EINVAL, RTE_FLOW_ERROR_TYPE_ACTION_CONF, @@ -2655,7 +2650,7 @@ hns3_flow_action_query(struct rte_eth_dev *dev, } memset(&flow, 0, sizeof(flow)); - flow.counter_id = handle->counter_id; + flow.counter_id = indir.counter_id; ret = hns3_counter_query(dev, &flow, (struct rte_flow_query_count *)data, error); pthread_mutex_unlock(&hw->flows_lock); diff --git a/drivers/net/hns3/hns3_flow.h b/drivers/net/hns3/hns3_flow.h index 1b49673f11..612890391d 100644 --- a/drivers/net/hns3/hns3_flow.h +++ b/drivers/net/hns3/hns3_flow.h @@ -50,8 +50,13 @@ enum { }; struct rte_flow_action_handle { - int indirect_type; - uint32_t counter_id; + union { + uint64_t val64; + struct { + int indirect_type; + uint32_t counter_id; + }; + }; }; union hns3_filter_conf { -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-06-26 19:59:19.344195462 +0800 +++ 0037-net-hns3-fix-memory-leak-for-indirect-flow-action.patch 2025-06-26 19:59:17.354418045 +0800 @@ -1 +1 @@ -From 18596f7be8f93e159e98704af12b1cc8af289dd6 Mon Sep 17 00:00:00 2001 +From 58f5aa2d977c5b1fc1a478a754f5239b608df87d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 18596f7be8f93e159e98704af12b1cc8af289dd6 ] @@ -19 +21,0 @@ -Cc: stable@dpdk.org @@ -28 +30 @@ -index 266934b45b..c0238d2bfa 100644 +index db318854af..b5a46e5ff1 100644 @@ -31 +33 @@ -@@ -473,19 +473,20 @@ hns3_handle_action_indirect(struct rte_eth_dev *dev, +@@ -470,19 +470,20 @@ hns3_handle_action_indirect(struct rte_eth_dev *dev, @@ -56 +58 @@ -@@ -2726,20 +2727,12 @@ hns3_flow_action_create(struct rte_eth_dev *dev, +@@ -2548,20 +2549,12 @@ hns3_flow_action_create(struct rte_eth_dev *dev, @@ -78 +80 @@ -@@ -2762,15 +2755,14 @@ hns3_flow_action_create(struct rte_eth_dev *dev, +@@ -2584,15 +2577,14 @@ hns3_flow_action_create(struct rte_eth_dev *dev, @@ -97 +99 @@ -@@ -2780,18 +2772,20 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, +@@ -2602,18 +2594,20 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, @@ -120 +122 @@ -@@ -2806,8 +2800,7 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, +@@ -2628,8 +2622,7 @@ hns3_flow_action_destroy(struct rte_eth_dev *dev, @@ -130 +132 @@ -@@ -2820,12 +2813,14 @@ hns3_flow_action_query(struct rte_eth_dev *dev, +@@ -2642,12 +2635,14 @@ hns3_flow_action_query(struct rte_eth_dev *dev, @@ -146 +148 @@ -@@ -2833,7 +2828,7 @@ hns3_flow_action_query(struct rte_eth_dev *dev, +@@ -2655,7 +2650,7 @@ hns3_flow_action_query(struct rte_eth_dev *dev,