net/hns3: check setting VF PCI bus return value
authorHongbo Zheng <zhenghongbo3@huawei.com>
Thu, 29 Oct 2020 12:51:56 +0000 (20:51 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:06 +0000 (23:35 +0100)
commit7ac3ae7649985c54a10f6904c298918e00a07e92
treed5496e72f77b7f39a2eb84eb84538ffc4050d250
parent821496d2144c0014d62477721f74fb15dc819f7f
net/hns3: check setting VF PCI bus return value

Currently hns3vf_reinit_dev only judge whether the return value of
setting PCI bus function is not 0, while it will return a negative
value when execute failed.

Fixes: 243651cb6c8c ("net/hns3: check PCI config space reads")
Cc: stable@dpdk.org
Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c