ixgbe: Modularize SR-IOV enablement code
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 11 Dec 2012 08:26:38 +0000 (08:26 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 23 Jan 2013 22:34:01 +0000 (14:34 -0800)
commit66dcfd756919ef9d8f564a0696a451574012852c
tree954cf7889ab8034faf2e026e397de15145a5d046
parent60a1a6800decfc30bd09a84a857ec2f052872ddd
ixgbe: Modularize SR-IOV enablement code

In preparation for enable/disable of SR-IOV via the PCI sysfs interface
move some core SR-IOV enablement code that would be common to module
parameter usage or callback from the PCI bus driver to a separate
function so that it can be used by either method.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
CC: Don Dutile <ddutile@redhat.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Tested-by: Sibai Li <Sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c