igb: SR-IOV init reordering
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 13 Mar 2013 15:50:29 +0000 (15:50 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 26 Mar 2013 10:07:27 +0000 (03:07 -0700)
commitd5e51a10d21761faaf069cac6f1c0311cf332820
tree6c6a5117cd573360372260c5e6187e600186e69d
parentd0f63acc2ff354a525f7bc7ba90e81f49b6c2ef8
igb: SR-IOV init reordering

igb is ineffective at setting a lower total VFs because:

int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs)
{
        ...
        /* Shouldn't change if VFs already enabled */
        if (dev->sriov->ctrl & PCI_SRIOV_CTRL_VFE)
                return -EBUSY;

Swap init ordering.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c