patch 'net/iavf: fix device stop during reset' has been queued to stable release 21.11.4

Kevin Traynor ktraynor at redhat.com
Wed Mar 22 11:32:04 CET 2023


Hi,

FYI, your patch has been queued to stable release 21.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/24/23. 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/35f911011c689d17c542d07a12a924dd0636207d

Thanks.

Kevin

---
>From 35f911011c689d17c542d07a12a924dd0636207d Mon Sep 17 00:00:00 2001
From: Zhichao Zeng <zhichaox.zeng at intel.com>
Date: Thu, 16 Mar 2023 15:14:49 +0800
Subject: [PATCH] net/iavf: fix device stop during reset

[ upstream commit 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b ]

The rte_eth_dev_stop will return wrong value as error will return from
iavf PMD during device reset.

This patch is a work around to fix it by return 0 in dev_stop during
device reset.

Fixes: 69dd4c3d0898 ("net/avf: enable queue and device")

Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
---
 drivers/net/iavf/iavf_ethdev.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/iavf/iavf_ethdev.c b/drivers/net/iavf/iavf_ethdev.c
index 630779fb21..a115a9f641 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -1035,4 +1035,7 @@ iavf_dev_stop(struct rte_eth_dev *dev)
 	PMD_INIT_FUNC_TRACE();
 
+	if (vf->vf_reset)
+		return 0;
+
 	if (adapter->closed)
 		return -1;
-- 
2.39.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2023-03-22 10:30:08.349725571 +0000
+++ 0017-net-iavf-fix-device-stop-during-reset.patch	2023-03-22 10:30:07.930866582 +0000
@@ -1 +1 @@
-From 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b Mon Sep 17 00:00:00 2001
+From 35f911011c689d17c542d07a12a924dd0636207d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index 3196210f2c..f6d68403ce 100644
+index 630779fb21..a115a9f641 100644
@@ -25 +26 @@
-@@ -1066,4 +1066,7 @@ iavf_dev_stop(struct rte_eth_dev *dev)
+@@ -1035,4 +1035,7 @@ iavf_dev_stop(struct rte_eth_dev *dev)



More information about the stable mailing list