commit | 652d1100453a14bcc2b4514af79c701360836085 | [log] [tgz] |
---|---|---|
author | Stefan Assmann <sassmann@kpanic.de> | Wed Jul 31 16:47:56 2013 -0600 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Wed Jul 31 16:47:56 2013 -0600 |
tree | 2026904c10460ee65b428f728db43aa83cf7968f | |
parent | 19b6984e972f2aca82d3756f826ded68e0a8fef8 [diff] |
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>