patch 'net/ice: fix DCF hardware init error path' has been queued to stable release 25.11.5

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

Thanks.

Kevin

---
>From ce0ab72da4cde0c2291e7b60c56d7a47f8d14567 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Sat, 7 Nov 2026 23:52:11 +0000
Subject: [PATCH] net/ice: fix DCF hardware init error path

[ upstream commit 26138abbcca20c7eaf2f2dfa3d895001f693baca ]

ice_dcf_init_hw() never frees the VF VSI map on its error paths, so it
leaks when any step after getting the map fails.

Similarly, when getting the VLAN offload V2 capabilities fails, the
error path leaves the interrupt callback registered and enabled, and
leaks the QoS bandwidth config array.  As the DCF hardware structure
passed to the callback is freed with the port when probe fails, a later
interrupt would use freed memory.

Free the VSI map, and add an error label that disables the interrupt,
unregisters the callback and frees the QoS array.

Fixes: 9a7980cfdf67 ("net/ice: complete VLAN offload capability for DCF")
Fixes: 8e1cf1823191 ("net/ice: init RSS and supported RXDID in DCF")
Fixes: 7564d5509611 ("net/ice: add DCF hardware initialization")

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.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/ice/ice_dcf.c b/drivers/net/intel/ice/ice_dcf.c
index 51716a4d5b..7791c334cc 100644
--- a/drivers/net/intel/ice/ice_dcf.c
+++ b/drivers/net/intel/ice/ice_dcf.c
@@ -854,12 +854,21 @@ ice_dcf_init_hw(struct rte_eth_dev *eth_dev, struct ice_dcf_hw *hw)
 	if ((hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_VLAN_V2) &&
 	    dcf_get_vlan_offload_caps_v2(hw))
-		goto err_rss;
+		goto err_intr;
 
 	return 0;
 
+err_intr:
+	ice_dcf_disable_irq0(hw);
+	rte_intr_disable(pci_dev->intr_handle);
+	rte_intr_callback_unregister_sync(pci_dev->intr_handle,
+				     ice_dcf_dev_interrupt_handler, hw);
+	rte_free(hw->qos_bw_cfg);
+	hw->qos_bw_cfg = NULL;
 err_rss:
 	rte_free(hw->rss_key);
 	rte_free(hw->rss_lut);
 err_alloc:
+	rte_free(hw->vf_vsi_map);
+	hw->vf_vsi_map = NULL;
 	rte_free(hw->vf_res);
 err_api:
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:50.646313292 +0000
+++ 0405-net-ice-fix-DCF-hardware-init-error-path.patch	2026-12-03 12:52:39.309648207 +0000
@@ -1 +1 @@
-From 26138abbcca20c7eaf2f2dfa3d895001f693baca Mon Sep 17 00:00:00 2001
+From ce0ab72da4cde0c2291e7b60c56d7a47f8d14567 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 26138abbcca20c7eaf2f2dfa3d895001f693baca ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org
@@ -30 +31 @@
-index 976f2ed260..0295ebe4fe 100644
+index 51716a4d5b..7791c334cc 100644



More information about the stable mailing list