]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit22db7cf27cffb7fbd7e64e648a0ca6d40276172a
treee65b4f7ae3b77cc288dd77986d1c14a12fa6e019
parent429169584f48ee3c786257d17dfba2917d5e869c
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