PCI: Update NumVFs register when disabling SR-IOV
authorYijing Wang <wangyijing@huawei.com>
Wed, 24 Jul 2013 09:26:12 +0000 (17:26 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 30 Jul 2013 16:35:39 +0000 (10:35 -0600)
Currently, we only update NumVFs register during sriov_enable().
This register should also be updated during sriov_disable() and when
sriov_enable() fails.  Otherwise, we will get the stale "Number of VFs"
info from lspci.

[bhelgaas: changelog]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

No differences found