Update DPDK version from 19.11 to 20.11 and also support hns3 PMD for Kunpeng 920 and Kunpeng 930. Signed-off-by: speech_white <humin29@huawei.com>
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
From e04c10fe75d5a5015fdb84387eb952fc1c05301f Mon Sep 17 00:00:00 2001
|
|
From: Chengwen Feng <fengchengwen@huawei.com>
|
|
Date: Fri, 7 May 2021 17:08:14 +0800
|
|
Subject: [PATCH 156/189] net/hns3: return error on PCI config write failure
|
|
|
|
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 | 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 c4419fb..182e83b 100644
|
|
--- 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;
|
|
}
|
|
|
|
--
|
|
2.7.4
|
|
|