patch 'net/ice: fix main VSI leak on init failure' has been queued to stable release 24.11.9

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

Thanks.

Luca Boccassi

---
>From f337d2f48d3e8b36df50450740e308820eb97403 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/ice/ice_ethdev.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 57a5c2ce9d..6fb33a5999 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2634,7 +2634,7 @@ ice_dev_init(struct rte_eth_dev *dev)
 	ret = ice_send_driver_ver(hw);
 	if (ret) {
 		PMD_INIT_LOG(ERR, "Failed to send driver version");
-		goto err_pf_setup;
+		goto err_release_vsi;
 	}
 
 	vsi = pf->main_vsi;
@@ -2707,6 +2707,9 @@ err_flow_init:
 	ice_pf_disable_irq0(hw);
 	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);
 err_msix_pool_init:
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-16 22:52:17.873043717 +0000
+++ 0034-net-ice-fix-main-VSI-leak-on-init-failure.patch	2026-11-16 22:52:16.472233060 +0000
@@ -1 +1 @@
-From 6a139b3ec746fd8f9a8eb3a50b3fed4478dc7b34 Mon Sep 17 00:00:00 2001
+From f337d2f48d3e8b36df50450740e308820eb97403 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6a139b3ec746fd8f9a8eb3a50b3fed4478dc7b34 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
- drivers/net/intel/ice/ice_ethdev.c | 5 ++++-
+ drivers/net/ice/ice_ethdev.c | 5 ++++-
@@ -23,5 +24,5 @@
-diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
-index d8d2b818d8..53a14dfd2b 100644
---- a/drivers/net/intel/ice/ice_ethdev.c
-+++ b/drivers/net/intel/ice/ice_ethdev.c
-@@ -2833,7 +2833,7 @@ ice_dev_init(struct rte_eth_dev *dev)
+diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
+index 57a5c2ce9d..6fb33a5999 100644
+--- a/drivers/net/ice/ice_ethdev.c
++++ b/drivers/net/ice/ice_ethdev.c
+@@ -2634,7 +2634,7 @@ ice_dev_init(struct rte_eth_dev *dev)
@@ -36 +37 @@
-@@ -2905,6 +2905,9 @@ err_flow_init:
+@@ -2707,6 +2707,9 @@ err_flow_init:


More information about the stable mailing list