patch 'net/ice: fix resource leaks on port close' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:23 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.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 12/08/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/efa66296f3434e171131f15087355ebd16cfd6a2
Thanks.
Kevin
---
>From efa66296f3434e171131f15087355ebd16cfd6a2 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/intel/ice/ice_ethdev.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 6cc6d12175..7cf5ca65a6 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -3014,11 +3014,7 @@ 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.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.417065405 +0000
+++ 0397-net-ice-fix-resource-leaks-on-port-close.patch 2026-12-03 12:52:39.303938792 +0000
@@ -1 +1 @@
-From cfa6eb230da4cfcc08e02812d6ef96d2286133ad Mon Sep 17 00:00:00 2001
+From efa66296f3434e171131f15087355ebd16cfd6a2 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit cfa6eb230da4cfcc08e02812d6ef96d2286133ad ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -28 +29 @@
-index 4c21356736..4abc0c3544 100644
+index 6cc6d12175..7cf5ca65a6 100644
@@ -31 +32 @@
-@@ -3110,11 +3110,7 @@ ice_dev_close(struct rte_eth_dev *dev)
+@@ -3014,11 +3014,7 @@ ice_dev_close(struct rte_eth_dev *dev)
@@ -36 +37 @@
-- ice_free(hw, hw->port_info);
+- rte_free(hw->port_info);
More information about the stable
mailing list