patch 'net/ice: fix DCF parent adapter init error path' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:32 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/562a0bf7fcc0bdca895db1a7fb8314ede09aeb6b
Thanks.
Kevin
---
>From 562a0bf7fcc0bdca895db1a7fb8314ede09aeb6b 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/intel/ice/ice_dcf_parent.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/drivers/net/intel/ice/ice_dcf_parent.c b/drivers/net/intel/ice/ice_dcf_parent.c
index f92bd5e726..ff7473bc71 100644
--- a/drivers/net/intel/ice/ice_dcf_parent.c
+++ b/drivers/net/intel/ice/ice_dcf_parent.c
@@ -458,5 +458,5 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)
PMD_INIT_LOG(ERR, "failed to init the DCF parent hardware with error %d",
err);
- return err;
+ goto free_vsi;
}
@@ -492,5 +492,5 @@ ice_dcf_init_parent_adapter(struct rte_eth_dev *eth_dev)
if (err) {
PMD_INIT_LOG(ERR, "Failed to initialize flow");
- goto uninit_hw;
+ goto uninit_flow;
}
@@ -505,6 +505,11 @@ 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.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.672913572 +0000
+++ 0406-net-ice-fix-DCF-parent-adapter-init-error-path.patch 2026-12-03 12:52:39.309859255 +0000
@@ -1 +1 @@
-From 0d3c672f6dfec3361c701413f854045cd8f4db23 Mon Sep 17 00:00:00 2001
+From 562a0bf7fcc0bdca895db1a7fb8314ede09aeb6b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0d3c672f6dfec3361c701413f854045cd8f4db23 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index e6398205ce..d5d37f8810 100644
+index f92bd5e726..ff7473bc71 100644
More information about the stable
mailing list