patch 'net/ice: fix resource leaks on port close' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:51:46 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/26. 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://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/122267a8acc12edc78e3ee757a7b6a18bc0704b8

Thanks.

Luca Boccassi

---
>From 122267a8acc12edc78e3ee757a7b6a18bc0704b8 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Mon, 2 Nov 2026 08:10:32 +0000
Subject: [PATCH] net/ice: fix resource leaks on port close

[ upstream commit cfa6eb230da4cfcc08e02812d6ef96d2286133ad ]

ice_dev_close() tears down the hardware state rather than with
ice_deinit_hw(), and misses part of it.
The switch filter management structures, the DDP package copy
and any remaining VSI contexts are never freed, and the flow
director counter block, allocated by ice_init_hw(), is never
given back to the firmware.
As ice_dev_reset() is a close followed by an init, the memory
also leaks on every port reset.

Call ice_deinit_hw() instead.

Fixes: f9cf4f864150 ("net/ice: support device initialization")
Fixes: 9c4f15901ada ("net/ice: free memory with matching allocator")

Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/ice/ice_ethdev.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 30479fdcee..95d49fd7b9 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2856,13 +2856,9 @@ ice_dev_close(struct rte_eth_dev *dev)
 
 	ice_res_pool_destroy(&pf->msix_pool);
 	ice_release_vsi(pf->main_vsi);
-	ice_sched_cleanup_all(hw);
-	ice_free_hw_tbls(hw);
-	rte_free(hw->port_info);
-	hw->port_info = NULL;
+	ice_deinit_hw(hw);
 	free((void *)(uintptr_t)ad->devargs.ddp_filename);
 	ad->devargs.ddp_filename = NULL;
-	ice_shutdown_all_ctrlq(hw, true);
 	rte_free(pf->proto_xtr);
 	pf->proto_xtr = NULL;
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:17.781931088 +0000
+++ 0032-net-ice-fix-resource-leaks-on-port-close.patch	2026-11-16 22:52:16.464232848 +0000
@@ -1 +1 @@
-From cfa6eb230da4cfcc08e02812d6ef96d2286133ad Mon Sep 17 00:00:00 2001
+From 122267a8acc12edc78e3ee757a7b6a18bc0704b8 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cfa6eb230da4cfcc08e02812d6ef96d2286133ad ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
- drivers/net/intel/ice/ice_ethdev.c | 6 +-----
+ drivers/net/ice/ice_ethdev.c | 6 +-----
@@ -27,5 +28,5 @@
-diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
-index 4c21356736..4abc0c3544 100644
---- a/drivers/net/intel/ice/ice_ethdev.c
-+++ b/drivers/net/intel/ice/ice_ethdev.c
-@@ -3109,13 +3109,9 @@ ice_dev_close(struct rte_eth_dev *dev)
+diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
+index 30479fdcee..95d49fd7b9 100644
+--- a/drivers/net/ice/ice_ethdev.c
++++ b/drivers/net/ice/ice_ethdev.c
+@@ -2856,13 +2856,9 @@ ice_dev_close(struct rte_eth_dev *dev)
@@ -37 +38 @@
--	ice_free(hw, hw->port_info);
+-	rte_free(hw->port_info);


More information about the stable mailing list