net: hns3: get vf count by pci_sriov_get_totalvfs
authorLipeng <lipeng321@huawei.com>
Mon, 23 Oct 2017 11:51:04 +0000 (19:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Oct 2017 00:16:41 +0000 (01:16 +0100)
commit709eb41ad8cd56ee68f9ca5140cfd46839d35837
tree7e0ad86d89302606272d3875db13768c7210293b
parent7410343eab04088225267949477d1c7b5f9598fc
net: hns3: get vf count by pci_sriov_get_totalvfs

This patch gets vf count by standard function pci_sriov_get_totalvfs,
instead of info from NIC HW.

Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c