patch 'net/ice: fix main VSI leak on init failure' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:05:25 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/186d975869bc8a2f64dd2ac0006d6ab0f2e8e601
Thanks.
Kevin
---
>From 186d975869bc8a2f64dd2ac0006d6ab0f2e8e601 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Mon, 2 Nov 2026 08:10:34 +0000
Subject: [PATCH] net/ice: fix main VSI leak on init failure
[ upstream commit 6a139b3ec746fd8f9a8eb3a50b3fed4478dc7b34 ]
When ice_send_driver_ver(), ice_flow_init() or ice_reset_fxp_resource()
fails in ice_dev_init(), the error path skips releasing the main VSI
created by ice_pf_setup(). This leaks the VSI structure, its MAC
filters and the VSI in hardware.
Release the main VSI on these error paths.
Fixes: 9481b0902efe ("net/ice: send driver version to firmware")
Fixes: 96b25c496aad ("net/ice: fix memzone leak after device init failure")
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/ice/ice_ethdev.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index ac7b86e719..86244b3610 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -2742,5 +2742,5 @@ ice_dev_init(struct rte_eth_dev *dev)
if (ret) {
PMD_INIT_LOG(ERR, "Failed to send driver version");
- goto err_pf_setup;
+ goto err_release_vsi;
}
@@ -2814,4 +2814,7 @@ err_flow_init:
rte_intr_callback_unregister(intr_handle,
ice_interrupt_handler, dev);
+err_release_vsi:
+ ice_release_vsi(pf->main_vsi);
+ pf->main_vsi = NULL;
err_pf_setup:
ice_res_pool_destroy(&pf->msix_pool);
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:50.476989933 +0000
+++ 0399-net-ice-fix-main-VSI-leak-on-init-failure.patch 2026-12-03 12:52:39.305938794 +0000
@@ -1 +1 @@
-From 6a139b3ec746fd8f9a8eb3a50b3fed4478dc7b34 Mon Sep 17 00:00:00 2001
+From 186d975869bc8a2f64dd2ac0006d6ab0f2e8e601 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6a139b3ec746fd8f9a8eb3a50b3fed4478dc7b34 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index d8d2b818d8..53a14dfd2b 100644
+index ac7b86e719..86244b3610 100644
@@ -27 +28 @@
-@@ -2834,5 +2834,5 @@ ice_dev_init(struct rte_eth_dev *dev)
+@@ -2742,5 +2742,5 @@ ice_dev_init(struct rte_eth_dev *dev)
@@ -34 +35 @@
-@@ -2906,4 +2906,7 @@ err_flow_init:
+@@ -2814,4 +2814,7 @@ err_flow_init:
More information about the stable
mailing list