summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie
diff options
context:
space:
mode:
authorethan.zhao <ethan.kernel@gmail.com>2013-11-06 22:49:13 +0800
committerBjorn Helgaas <bhelgaas@google.com>2013-11-22 14:53:27 -0700
commit045cc22e53a1a0caaa9a0b6b64246d2690049906 (patch)
tree44323f719aab075677c39cd1369b0eee6bf985d5 /drivers/pci/pcie
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadlinux-045cc22e53a1a0caaa9a0b6b64246d2690049906.tar.gz
linux-045cc22e53a1a0caaa9a0b6b64246d2690049906.tar.bz2
linux-045cc22e53a1a0caaa9a0b6b64246d2690049906.zip
PCI: Clear NumVFs when disabling SR-IOV in sriov_init()
When SR-IOV is disabled (VF Enable is cleared), NumVFs is not very useful, so this patch clears it out to prevent confusing lspci output like that below. We already clear NumVFs in sriov_disable(), and this does the same when we disable SR-IOV as part of parsing the SR-IOV capability. $ lspci -vvv -s 13:00.0 13:00.0 Ethernet controller: Intel Corporation 82599EB 10-Gigabit SFI/SFP+ Network Connection (rev 01) Capabilities: [160 v1] Single Root I/O Virtualization (SR-IOV) IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy+ Initial VFs: 64, Total VFs: 64, Number of VFs: 64, ... [bhelgaas: changelog] Signed-off-by: ethan.zhao <ethan.kernel@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pcie')
0 files changed, 0 insertions, 0 deletions