patch 'net/ice: fix DCF representor info leak on close' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:05:37 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/a6f3cefcb3ff9449e6836c51e75829fe3ac8c9c6

Thanks.

Kevin

---
>From a6f3cefcb3ff9449e6836c51e75829fe3ac8c9c6 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Sat, 7 Nov 2026 23:52:17 +0000
Subject: [PATCH] net/ice: fix DCF representor info leak on close

[ upstream commit 0dc5722b8bc664119ca446f4f00b92ec8b59053f ]

The representor info array is only freed by ice_dcf_dev_uninit(), which
runs on device removal.  Closing the DCF port with rte_eth_dev_close()
releases the port without freeing it.

Free it in ice_dcf_dev_close(). ice_dcf_dev_reset() needs the info to
survive, as init notifies the representors again, so move the rest of
close into ice_dcf_dev_teardown() and call that from reset instead.

Fixes: c7e1a1a3bfeb ("net/ice: refactor DCF VLAN handling")

Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ice/ice_dcf_ethdev.c | 23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/drivers/net/intel/ice/ice_dcf_ethdev.c b/drivers/net/intel/ice/ice_dcf_ethdev.c
index 1d8b73d957..5668385f7f 100644
--- a/drivers/net/intel/ice/ice_dcf_ethdev.c
+++ b/drivers/net/intel/ice/ice_dcf_ethdev.c
@@ -1669,12 +1669,9 @@ ice_dcf_init_repr_info(struct ice_dcf_adapter *dcf_adapter)
 }
 
-static int
-ice_dcf_dev_close(struct rte_eth_dev *dev)
+static void
+ice_dcf_dev_teardown(struct rte_eth_dev *dev)
 {
 	struct ice_dcf_adapter *adapter = dev->data->dev_private;
 
-	if (rte_eal_process_type() != RTE_PROC_PRIMARY)
-		return 0;
-
 	ice_dcf_vf_repr_notify_all(adapter, false);
 	(void)ice_dcf_dev_stop(dev);
@@ -1683,4 +1680,15 @@ ice_dcf_dev_close(struct rte_eth_dev *dev)
 	ice_dcf_uninit_parent_adapter(dev);
 	ice_dcf_uninit_hw(dev, &adapter->real_hw);
+}
+
+static int
+ice_dcf_dev_close(struct rte_eth_dev *dev)
+{
+	if (rte_eal_process_type() != RTE_PROC_PRIMARY)
+		return 0;
+
+	ice_dcf_dev_teardown(dev);
+	/* representor info survives ice_dcf_dev_reset, so only release it here */
+	ice_dcf_free_repr_info(dev->data->dev_private);
 
 	return 0;
@@ -1870,7 +1878,6 @@ ice_dcf_dev_reset(struct rte_eth_dev *dev)
 	}
 
-	ret = ice_dcf_dev_close(dev);
-	if (ret)
-		return ret;
+	if (rte_eal_process_type() == RTE_PROC_PRIMARY)
+		ice_dcf_dev_teardown(dev);
 
 	ret = ice_dcf_dev_init(dev);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:50.807269513 +0000
+++ 0411-net-ice-fix-DCF-representor-info-leak-on-close.patch	2026-12-03 12:52:39.311439169 +0000
@@ -1 +1 @@
-From 0dc5722b8bc664119ca446f4f00b92ec8b59053f Mon Sep 17 00:00:00 2001
+From a6f3cefcb3ff9449e6836c51e75829fe3ac8c9c6 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0dc5722b8bc664119ca446f4f00b92ec8b59053f ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index c78b290b0d..26c22265eb 100644
+index 1d8b73d957..5668385f7f 100644
@@ -27 +28 @@
-@@ -1661,12 +1661,9 @@ ice_dcf_init_repr_info(struct ice_dcf_adapter *dcf_adapter)
+@@ -1669,12 +1669,9 @@ ice_dcf_init_repr_info(struct ice_dcf_adapter *dcf_adapter)
@@ -42 +43 @@
-@@ -1675,4 +1672,15 @@ ice_dcf_dev_close(struct rte_eth_dev *dev)
+@@ -1683,4 +1680,15 @@ ice_dcf_dev_close(struct rte_eth_dev *dev)
@@ -58 +59 @@
-@@ -1862,7 +1870,6 @@ ice_dcf_dev_reset(struct rte_eth_dev *dev)
+@@ -1870,7 +1878,6 @@ ice_dcf_dev_reset(struct rte_eth_dev *dev)



More information about the stable mailing list