[dpdk-stable] patch 'net/hns3: return error on PCI config write failure' has been queued to stable release 19.11.9

Christian Ehrhardt christian.ehrhardt at canonical.com
Thu Jun 10 14:06:04 CEST 2021


Hi,

FYI, your patch has been queued to stable release 19.11.9

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/12/21. 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/cpaelzer/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/cpaelzer/dpdk-stable-queue/commit/041ad333d3172f7508afa64b168b4ce555bc15f4

Thanks.

Christian Ehrhardt <christian.ehrhardt at canonical.com>

---
>From 041ad333d3172f7508afa64b168b4ce555bc15f4 Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Fri, 7 May 2021 17:08:14 +0800
Subject: [PATCH] net/hns3: return error on PCI config write failure

[ upstream commit d9fb708a000d4935af253ad93f917ed7a8be208e ]

This patch returns error code when calling rte_pci_write_config() API.

Fixes: 6dd32ded17d8 ("net/hns3: check PCI config space write")

Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Signed-off-by: Min Hu (Connor) <humin29 at huawei.com>
---
 drivers/net/hns3/hns3_ethdev_vf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/hns3/hns3_ethdev_vf.c b/drivers/net/hns3/hns3_ethdev_vf.c
index 17ed526d70..a7b6188eea 100644
--- a/drivers/net/hns3/hns3_ethdev_vf.c
+++ b/drivers/net/hns3/hns3_ethdev_vf.c
@@ -172,9 +172,12 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)
 		if (ret < 0) {
 			PMD_INIT_LOG(ERR, "failed to write PCI offset 0x%x",
 				    (pos + PCI_MSIX_FLAGS));
+			return -ENXIO;
 		}
+
 		return 0;
 	}
+
 	return -1;
 }
 
-- 
2.31.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2021-06-10 14:04:58.828711046 +0200
+++ 0016-net-hns3-return-error-on-PCI-config-write-failure.patch	2021-06-10 14:04:58.034024406 +0200
@@ -1 +1 @@
-From d9fb708a000d4935af253ad93f917ed7a8be208e Mon Sep 17 00:00:00 2001
+From 041ad333d3172f7508afa64b168b4ce555bc15f4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d9fb708a000d4935af253ad93f917ed7a8be208e ]
+
@@ -9 +10,0 @@
-Cc: stable at dpdk.org
@@ -18 +19 @@
-index 6aa8a9b6ed..71f3f95877 100644
+index 17ed526d70..a7b6188eea 100644
@@ -21 +22 @@
-@@ -156,9 +156,12 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)
+@@ -172,9 +172,12 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)
@@ -31 +32 @@
- 	return -ENXIO;
+ 	return -1;


More information about the stable mailing list