patch 'net/iavf: fix VF reset detection on fast ARQ bit flip' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00: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/3545d1345fbfa9d530965ac2b0e07dacaff4592b
Thanks.
Kevin
---
>From 3545d1345fbfa9d530965ac2b0e07dacaff4592b Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Tue, 18 Aug 2026 04:57:30 +0000
Subject: [PATCH] net/iavf: fix VF reset detection on fast ARQ bit flip
[ upstream commit bdad52ff01b4530f109c32ec6bda37d5c909f51e ]
During PF-initiated reset or a remote/ToR switch link-flap, the PF
toggles the admin receive queue enable bit (ARQLEN1) so quickly around a
VF reset that the VF's sampling window misses it, leaving the PF and the
VF states out of sync and the data path stalled.
Complement the ARQLEN1 check with VFGEN_RSTAT (VIRTCHNL_VFR_INPROGRESS)
and shorten the poll interval to 5 ms (with a proportionally larger
count, keeping the ~10 s budget), matching the Linux kernel iavf driver.
When the VFR is still not observed, proceed with recovery instead of
bailing out so the PF and the VF states converge.
Fixes: 80fb3c920458 ("net/iavf: fix crash on VF start")
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Ciara Loftus <ciara.loftus at intel.com>
---
drivers/net/intel/iavf/iavf.h | 1 +
drivers/net/intel/iavf/iavf_ethdev.c | 37 +++++++++++++++++++++-------
2 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/drivers/net/intel/iavf/iavf.h b/drivers/net/intel/iavf/iavf.h
index 8de5280d53..9bef248e81 100644
--- a/drivers/net/intel/iavf/iavf.h
+++ b/drivers/net/intel/iavf/iavf.h
@@ -21,4 +21,5 @@
#define IAVF_RESET_WAIT_CNT 2000
#define IAVF_RESET_DETECTED_CNT 500
+#define IAVF_RESET_POLL_SCALE 4 /* Poll-interval scale for reset detection */
#define IAVF_BUF_SIZE_MIN 1024
#define IAVF_FRAME_SIZE_MAX 9728
diff --git a/drivers/net/intel/iavf/iavf_ethdev.c b/drivers/net/intel/iavf/iavf_ethdev.c
index a70b8c0c80..7e43f4fbc7 100644
--- a/drivers/net/intel/iavf/iavf_ethdev.c
+++ b/drivers/net/intel/iavf/iavf_ethdev.c
@@ -3282,6 +3282,24 @@ static inline bool
iavf_is_reset(struct iavf_hw *hw)
{
- return !(IAVF_READ_REG(hw, IAVF_VF_ARQLEN1) &
- IAVF_VF_ARQLEN1_ARQENABLE_MASK);
+ uint32_t rstat;
+
+ /* ARQ has been disabled by the PF as part of the VFR. */
+ if (!(IAVF_READ_REG(hw, IAVF_VF_ARQLEN1) &
+ IAVF_VF_ARQLEN1_ARQENABLE_MASK))
+ return true;
+
+ /*
+ * VFGEN_RSTAT reports VIRTCHNL_VFR_INPROGRESS.
+ * At times, the PF flips ARQENABLE so quickly
+ * around a VFR that the ARQLEN1 sample window
+ * misses it. Using VFGEN_RSTAT, as a
+ * complementary indicator, prevents from
+ * missing a reset that really did happen.
+ */
+ rstat = (IAVF_READ_REG(hw, IAVF_VFGEN_RSTAT) &
+ IAVF_VFGEN_RSTAT_VFR_STATE_MASK) >>
+ IAVF_VFGEN_RSTAT_VFR_STATE_SHIFT;
+
+ return rstat == VIRTCHNL_VFR_INPROGRESS;
}
@@ -3292,9 +3310,12 @@ iavf_is_reset_detected(struct iavf_adapter *adapter)
int i;
- /* poll until we see the reset actually happen */
- for (i = 0; i < IAVF_RESET_DETECTED_CNT; i++) {
+ /*
+ * Poll until the reset actually happen.
+ * Poll every 5 ms to catch the fast ARQ flips.
+ */
+ for (i = 0; i < IAVF_RESET_DETECTED_CNT * IAVF_RESET_POLL_SCALE; i++) {
if (iavf_is_reset(hw))
return true;
- rte_delay_ms(20);
+ rte_delay_us(5000);
}
@@ -3319,8 +3340,6 @@ iavf_handle_hw_reset(struct rte_eth_dev *dev, bool vf_initiated_reset)
return;
- if (!iavf_is_reset_detected(adapter)) {
- PMD_DRV_LOG(DEBUG, "reset not start");
- return;
- }
+ if (!iavf_is_reset_detected(adapter))
+ PMD_DRV_LOG(WARNING, "VFR not observed; recovering anyway");
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:42.103299615 +0000
+++ 0099-net-iavf-fix-VF-reset-detection-on-fast-ARQ-bit-flip.patch 2026-12-03 12:52:39.095258238 +0000
@@ -1 +1 @@
-From bdad52ff01b4530f109c32ec6bda37d5c909f51e Mon Sep 17 00:00:00 2001
+From 3545d1345fbfa9d530965ac2b0e07dacaff4592b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit bdad52ff01b4530f109c32ec6bda37d5c909f51e ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -28 +29 @@
-index 4a0ba44164..044de3cfd4 100644
+index 8de5280d53..9bef248e81 100644
@@ -31 +32 @@
-@@ -22,4 +22,5 @@
+@@ -21,4 +21,5 @@
@@ -38 +39 @@
-index 3a52038e09..833f13e758 100644
+index a70b8c0c80..7e43f4fbc7 100644
@@ -41 +42 @@
-@@ -3379,6 +3379,24 @@ static inline bool
+@@ -3282,6 +3282,24 @@ static inline bool
@@ -68 +69 @@
-@@ -3389,9 +3407,12 @@ iavf_is_reset_detected(struct iavf_adapter *adapter)
+@@ -3292,9 +3310,12 @@ iavf_is_reset_detected(struct iavf_adapter *adapter)
@@ -84 +85 @@
-@@ -3443,8 +3464,6 @@ iavf_handle_hw_reset(struct rte_eth_dev *dev, bool vf_initiated_reset)
+@@ -3319,8 +3340,6 @@ iavf_handle_hw_reset(struct rte_eth_dev *dev, bool vf_initiated_reset)
More information about the stable
mailing list