git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a0f65
)
net/hns3: return error on PCI config write failure
author
Chengwen Feng
<fengchengwen@huawei.com>
Fri, 7 May 2021 09:08:14 +0000
(17:08 +0800)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Tue, 11 May 2021 16:27:25 +0000
(18:27 +0200)
This patch returns error code when calling rte_pci_write_config() API.
Fixes:
6dd32ded17d8
("net/hns3: check PCI config space write")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c
patch
|
blob
|
history
diff --git
a/drivers/net/hns3/hns3_ethdev_vf.c
b/drivers/net/hns3/hns3_ethdev_vf.c
index
6aa8a9b
..
71f3f95
100644
(file)
--- a/
drivers/net/hns3/hns3_ethdev_vf.c
+++ b/
drivers/net/hns3/hns3_ethdev_vf.c
@@
-156,9
+156,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 -ENXIO;
}