ice: Simplify ice_sriov_configure
authorBrett Creeley <brett.creeley@intel.com>
Sat, 16 May 2020 00:51:08 +0000 (17:51 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 28 May 2020 22:57:40 +0000 (15:57 -0700)
commit02337f1f59148ad2d361feae0a11f6596b04632b
treee65b4f7ae3b77cc288dd77986d1c14a12fa6e019
parentac3716134a40b04e18a2dda78800797129138005
ice: Simplify ice_sriov_configure

Add a new function for checking if SR-IOV can be configured based on
the PF and/or device's state/capabilities. Also, simplify the flow in
ice_sriov_configure().

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c