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

luca.boccassi at gmail.com luca.boccassi at gmail.com
Mon Nov 16 23:51:54 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/7c33561372b56a215f8f8c544e2c7d8cfb1d7a36

Thanks.

Luca Boccassi

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

diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c
index 204d4eadbb..5dcd07ac17 100644
--- a/drivers/net/ice/ice_dcf.c
+++ b/drivers/net/ice/ice_dcf.c
@@ -853,14 +853,23 @@ 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:
 	iavf_shutdown_adminq(&hw->avf);
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:18.103030897 +0000
+++ 0040-net-ice-fix-DCF-hardware-init-error-path.patch	2026-11-16 22:52:16.476233166 +0000
@@ -1 +1 @@
-From 26138abbcca20c7eaf2f2dfa3d895001f693baca Mon Sep 17 00:00:00 2001
+From 7c33561372b56a215f8f8c544e2c7d8cfb1d7a36 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 26138abbcca20c7eaf2f2dfa3d895001f693baca ]
+
@@ -21 +22,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
- drivers/net/intel/ice/ice_dcf.c | 11 ++++++++++-
+ drivers/net/ice/ice_dcf.c | 11 ++++++++++-
@@ -29,4 +30,4 @@
-diff --git a/drivers/net/intel/ice/ice_dcf.c b/drivers/net/intel/ice/ice_dcf.c
-index 976f2ed260..0295ebe4fe 100644
---- a/drivers/net/intel/ice/ice_dcf.c
-+++ b/drivers/net/intel/ice/ice_dcf.c
+diff --git a/drivers/net/ice/ice_dcf.c b/drivers/net/ice/ice_dcf.c
+index 204d4eadbb..5dcd07ac17 100644
+--- a/drivers/net/ice/ice_dcf.c
++++ b/drivers/net/ice/ice_dcf.c


More information about the stable mailing list