patch 'net/iavf: keep device stopped if start fails' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:03:28 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/99e0a439d52a4cf3a5bf488e877b69087fc13ccb
Thanks.
Kevin
---
>From 99e0a439d52a4cf3a5bf488e877b69087fc13ccb Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Fri, 23 Oct 2026 10:32:21 +0100
Subject: [PATCH] net/iavf: keep device stopped if start fails
[ upstream commit bc69413284a96f55236a0305da34aaffb4b15d01 ]
Currently, `iavf_dev_start()` clears `adapter->stopped` before several
operations that can fail. A subsequent `iavf_dev_stop()` then disables
interrupts and stops and resets queues even though startup did not
complete.
Mark the adapter running only after startup succeeds, and return early
from stop when it is already stopped.
Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/intel/iavf/iavf_ethdev.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
index b6b05b9a7f..705a9beeba 100644
--- a/drivers/net/intel/iavf/iavf_ethdev.c
+++ b/drivers/net/intel/iavf/iavf_ethdev.c
@@ -1015,6 +1015,4 @@ iavf_dev_start(struct rte_eth_dev *dev)
return -1;
- adapter->stopped = 0;
-
vf->max_pkt_len = dev->data->mtu + IAVF_ETH_OVERHEAD;
vf->num_queue_pairs = RTE_MAX(dev->data->nb_rx_queues,
@@ -1094,4 +1092,5 @@ iavf_dev_start(struct rte_eth_dev *dev)
iavf_phc_sync_alarm_start(dev);
+ adapter->stopped = 0;
/* An explicit start supersedes any pending deferred start */
@@ -1117,11 +1116,11 @@ iavf_dev_stop(struct rte_eth_dev *dev)
return -1;
+ if (adapter->stopped == 1)
+ return 0;
+
if (!(vf->vf_res->vf_cap_flags & VIRTCHNL_VF_OFFLOAD_WB_ON_ITR) &&
dev->data->dev_conf.intr_conf.rxq != 0)
rte_intr_disable(intr_handle);
- if (adapter->stopped == 1)
- return 0;
-
iavf_phc_sync_alarm_stop(dev);
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:47.217392004 +0000
+++ 0282-net-iavf-keep-device-stopped-if-start-fails.patch 2026-12-03 12:52:39.225699445 +0000
@@ -1 +1 @@
-From bc69413284a96f55236a0305da34aaffb4b15d01 Mon Sep 17 00:00:00 2001
+From 99e0a439d52a4cf3a5bf488e877b69087fc13ccb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit bc69413284a96f55236a0305da34aaffb4b15d01 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index a2be58f1a8..91851b06db 100644
+index b6b05b9a7f..705a9beeba 100644
@@ -27 +28 @@
-@@ -1040,6 +1040,4 @@ iavf_dev_start(struct rte_eth_dev *dev)
+@@ -1015,6 +1015,4 @@ iavf_dev_start(struct rte_eth_dev *dev)
@@ -34 +35 @@
-@@ -1113,4 +1111,5 @@ iavf_dev_start(struct rte_eth_dev *dev)
+@@ -1094,4 +1092,5 @@ iavf_dev_start(struct rte_eth_dev *dev)
@@ -40 +41 @@
-@@ -1136,11 +1135,11 @@ iavf_dev_stop(struct rte_eth_dev *dev)
+@@ -1117,11 +1116,11 @@ iavf_dev_stop(struct rte_eth_dev *dev)
More information about the stable
mailing list