diff options
author | Alexander Duyck <aduyck@mirantis.com> | 2015-10-29 16:20:57 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2015-10-29 16:20:57 -0500 |
commit | ce288ec380380f3ab0e3c631b9c2f598835a3f38 (patch) | |
tree | 1eeb932a8ef4bae0d58ba2f2f7977ce3175d69cc /CREDITS | |
parent | ea9a8854161d9580cfabe011c0ae296ecc0e1d4f (diff) | |
download | lwn-ce288ec380380f3ab0e3c631b9c2f598835a3f38.tar.gz lwn-ce288ec380380f3ab0e3c631b9c2f598835a3f38.zip |
PCI: Remove redundant validation of SR-IOV offset/stride registers
Previously, we read, validated, and cached PCI_SRIOV_VF_OFFSET and
PCI_SRIOV_VF_STRIDE in sriov_enable(). But sriov_init() now does
that via compute_max_vf_buses(), so we don't need to do it again.
Remove the PCI_SRIOV_VF_OFFSET and PCI_SRIOV_VF_STRIDE config reads from
sriov_enable(). The pci_sriov structure already contains the offset and
stride corresponding to the current NumVFs.
[bhelgaas: split to separate patch for reviewability]
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions