patch 'net/iavf: fix event handler refcount leak on HW reset' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Jun 11 15:20:37 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/5a9b65a98d8ad404790d99ee97772110ad88b600
Thanks.
Luca Boccassi
---
>From 5a9b65a98d8ad404790d99ee97772110ad88b600 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/iavf/iavf_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index c6394bed9e..dcd726f10d 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -2828,7 +2828,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
adapter->stopped = 1;
adapter->mac_primary_set = false;
- if (iavf_dev_event_handler_init())
+ if (!vf->in_reset_recovery && iavf_dev_event_handler_init())
goto init_vf_err;
if (iavf_init_vf(eth_dev) != 0) {
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-06-11 14:20:04.798100067 +0100
+++ 0088-net-iavf-fix-event-handler-refcount-leak-on-HW-reset.patch 2026-06-11 14:20:01.334748898 +0100
@@ -1 +1 @@
-From e72adb67ccea23cbf4f78491be2cd4fec59a7c34 Mon Sep 17 00:00:00 2001
+From 5a9b65a98d8ad404790d99ee97772110ad88b600 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e72adb67ccea23cbf4f78491be2cd4fec59a7c34 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
- drivers/net/intel/iavf/iavf_ethdev.c | 2 +-
+ drivers/net/iavf/iavf_ethdev.c | 2 +-
@@ -26,7 +27,7 @@
-diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
-index a38132e80e..ec1ad02826 100644
---- a/drivers/net/intel/iavf/iavf_ethdev.c
-+++ b/drivers/net/intel/iavf/iavf_ethdev.c
-@@ -3031,7 +3031,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
- adapter->tpid = RTE_ETHER_TYPE_VLAN; /* VLAN TPID set to 0x8100 by default */
- rte_spinlock_init(&adapter->phc_sync_lock);
+diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
+index c6394bed9e..dcd726f10d 100644
+--- a/drivers/net/iavf/iavf_ethdev.c
++++ b/drivers/net/iavf/iavf_ethdev.c
+@@ -2828,7 +2828,7 @@ iavf_dev_init(struct rte_eth_dev *eth_dev)
+ adapter->stopped = 1;
+ adapter->mac_primary_set = false;
More information about the stable
mailing list