patch 'net/ice: fix DCF parent adapter 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:55 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/ac492f7c32720083c5366074ea472c669d736477

Thanks.

Luca Boccassi

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

[ upstream commit 0d3c672f6dfec3361c701413f854045cd8f4db23 ]

ice_dcf_init_parent_adapter() allocates a dummy main VSI first, but none
of its error paths free it.

When ice_flow_init() fails, the error path also skips ice_flow_uninit(),
so the DDP parser and any flow engine state set up before the failure
are not released.

Free the main VSI on all error paths, and call ice_flow_uninit() when
flow init fails.

Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF")
Fixes: 829c3106812d ("net/ice: enable switch flow on DCF")

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

diff --git a/drivers/net/ice/ice_dcf_parent.c b/drivers/net/ice/ice_dcf_parent.c
index f92bd5e726..ff7473bc71 100644
--- a/drivers/net/ice/ice_dcf_parent.c
+++ b/drivers/net/ice/ice_dcf_parent.c
@@ -457,7 +457,7 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)
 	if (err) {
 		PMD_INIT_LOG(ERR, "failed to init the DCF parent hardware with error %d",
 			     err);
-		return err;
+		goto free_vsi;
 	}
 
 	if (hw->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_QOS) {
@@ -491,7 +491,7 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)
 	err = ice_flow_init(parent_adapter);
 	if (err) {
 		PMD_INIT_LOG(ERR, "Failed to initialize flow");
-		goto uninit_hw;
+		goto uninit_flow;
 	}
 
 	mac = (const struct rte_ether_addr *)hw->avf.mac.addr;
@@ -504,8 +504,13 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)
 
 	return 0;
 
+uninit_flow:
+	ice_flow_uninit(parent_adapter);
 uninit_hw:
 	ice_dcf_uninit_parent_hw(parent_hw);
+free_vsi:
+	rte_free(parent_adapter->pf.main_vsi);
+	parent_adapter->pf.main_vsi = NULL;
 	return err;
 }
 
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:18.138508485 +0000
+++ 0041-net-ice-fix-DCF-parent-adapter-init-error-path.patch	2026-11-16 22:52:16.476233166 +0000
@@ -1 +1 @@
-From 0d3c672f6dfec3361c701413f854045cd8f4db23 Mon Sep 17 00:00:00 2001
+From ac492f7c32720083c5366074ea472c669d736477 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0d3c672f6dfec3361c701413f854045cd8f4db23 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
- drivers/net/intel/ice/ice_dcf_parent.c | 9 +++++++--
+ drivers/net/ice/ice_dcf_parent.c | 9 +++++++--
@@ -26,4 +27,4 @@
-diff --git a/drivers/net/intel/ice/ice_dcf_parent.c b/drivers/net/intel/ice/ice_dcf_parent.c
-index e6398205ce..d5d37f8810 100644
---- a/drivers/net/intel/ice/ice_dcf_parent.c
-+++ b/drivers/net/intel/ice/ice_dcf_parent.c
+diff --git a/drivers/net/ice/ice_dcf_parent.c b/drivers/net/ice/ice_dcf_parent.c
+index f92bd5e726..ff7473bc71 100644
+--- a/drivers/net/ice/ice_dcf_parent.c
++++ b/drivers/net/ice/ice_dcf_parent.c


More information about the stable mailing list