PCI: Remove redundant validation of SR-IOV offset/stride registers
authorAlexander Duyck <aduyck@mirantis.com>
Thu, 29 Oct 2015 21:20:57 +0000 (16:20 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 29 Oct 2015 21:20:57 +0000 (16:20 -0500)
commitce288ec380380f3ab0e3c631b9c2f598835a3f38
tree1eeb932a8ef4bae0d58ba2f2f7977ce3175d69cc
parentea9a8854161d9580cfabe011c0ae296ecc0e1d4f
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>
drivers/pci/iov.c
This page took 0.024398 seconds and 5 git commands to generate.