aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorStefan Assmann <sassmann@kpanic.de>2013-07-31 16:47:56 -0600
committerBjorn Helgaas <bhelgaas@google.com>2013-07-31 16:47:56 -0600
commit652d1100453a14bcc2b4514af79c701360836085 (patch)
tree2026904c10460ee65b428f728db43aa83cf7968f /tools/perf/scripts/python/export-to-postgresql.py
parentPCI: Update NumVFs register when disabling SR-IOV (diff)
downloadlinux-dev-652d1100453a14bcc2b4514af79c701360836085.tar.xz
linux-dev-652d1100453a14bcc2b4514af79c701360836085.zip
PCI: Return -ENOSYS for SR-IOV operations on non-SR-IOV devices
Change the return value to -ENOSYS if a device is not an SR-IOV PF. Previously we returned either -ENODEV or -EINVAL. Also have pci_sriov_get_totalvfs() return 0 in the error case to make the behaviour consistent whether CONFIG_PCI_IOV is enabled or not. Signed-off-by: Stefan Assmann <sassmann@kpanic.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions