patch 'net/iavf: fix device stop during reset' has been queued to stable release 22.11.2
Xueming Li
xuemingl at nvidia.com
Sun Apr 9 17:25:06 CEST 2023
Hi,
FYI, your patch has been queued to stable release 22.11.2
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/11/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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging
This queued commit can be viewed at:
https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/b836bb43cfaa8a12ecfac6e837d4c20817bf99fd
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From b836bb43cfaa8a12ecfac6e837d4c20817bf99fd 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
Cc: Xueming Li <xuemingl at nvidia.com>
[ 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 3196210f2c..f6d68403ce 100644
--- a/drivers/net/iavf/iavf_ethdev.c
+++ b/drivers/net/iavf/iavf_ethdev.c
@@ -1065,6 +1065,9 @@ iavf_dev_stop(struct rte_eth_dev *dev)
PMD_INIT_FUNC_TRACE();
+ if (vf->vf_reset)
+ return 0;
+
if (adapter->closed)
return -1;
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2023-04-09 21:45:41.798564300 +0800
+++ 0118-net-iavf-fix-device-stop-during-reset.patch 2023-04-09 21:45:38.779042200 +0800
@@ -1 +1 @@
-From 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b Mon Sep 17 00:00:00 2001
+From b836bb43cfaa8a12ecfac6e837d4c20817bf99fd Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Xueming Li <xuemingl at nvidia.com>
+
+[ upstream commit 24b8bc86dc489ab77d7de7626cc6af7ac9eaba0b ]
@@ -13 +15,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list