net/hns3: return error on PCI config write failure
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 7 May 2021 09:08:14 +0000 (17:08 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 16:27:25 +0000 (18:27 +0200)
commitd9fb708a000d4935af253ad93f917ed7a8be208e
treed7e000bdedec4321fb043a17fe9861445ad68186
parent63a0f65c9572ae857f18626d95924273894f471a
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