patch 'net/iavf: fix event handler refcount leak on HW reset' has been queued to stable release 25.11.3
Kevin Traynor
ktraynor at redhat.com
Tue Jul 28 17:55:34 CEST 2026
Hi,
FYI, your patch has been queued to stable release 25.11.3
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/01/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/d414d20b818dfc5066569b4458831534d9ceffaa
Thanks.
Kevin
---
>From d414d20b818dfc5066569b4458831534d9ceffaa Mon Sep 17 00:00:00 2001
From: Ciara Loftus <ciara.loftus at intel.com>
Date: Mon, 8 Jun 2026 14:55:18 +0000
Subject: [PATCH] net/iavf: fix event handler refcount leak on HW reset
[ upstream commit e72adb67ccea23cbf4f78491be2cd4fec59a7c34 ]
Currently, when handling a hardware reset, the uninit path skips
releasing the event handler reference while in_reset_recovery is set,
to prevent premature teardown of the event handler thread. However, the
subsequent re-init call unconditionally increments the reference count,
inflating ndev on every reset cycle. On the final device removal, the
count never reaches zero and the event handler thread is never joined.
Fix it by also skipping the event handler reference acquisition during
reset recovery, matching the symmetric skip in the uninit path so the
count stays stable across each reset cycle.
Fixes: 3e6a5d2d310a ("net/iavf: add devargs to enable VF auto-reset")
Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/iavf/iavf_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
index c43843c4e4..89cb51d751 100644
--- a/drivers/net/intel/iavf/iavf_ethdev.c
+++ b/drivers/net/intel/iavf/iavf_ethdev.c
@@ -2975,5 +2975,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
rte_spinlock_init(&adapter->phc_sync_lock);
- if (iavf_dev_event_handler_init())
+ if (!vf->in_reset_recovery && iavf_dev_event_handler_init())
goto init_vf_err;
--
2.55.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-07-28 16:54:50.971395186 +0100
+++ 0004-net-iavf-fix-event-handler-refcount-leak-on-HW-reset.patch 2026-07-28 16:54:50.752728354 +0100
@@ -1 +1 @@
-From e72adb67ccea23cbf4f78491be2cd4fec59a7c34 Mon Sep 17 00:00:00 2001
+From d414d20b818dfc5066569b4458831534d9ceffaa Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e72adb67ccea23cbf4f78491be2cd4fec59a7c34 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index a38132e80e..ec1ad02826 100644
+index c43843c4e4..89cb51d751 100644
@@ -30 +31 @@
-@@ -3032,5 +3032,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+@@ -2975,5 +2975,5 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
More information about the stable
mailing list