]> git.baikalelectronics.ru Git - kernel.git/commit
ice: use ice_is_vf_trusted helper function
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 23 Feb 2022 00:26:58 +0000 (16:26 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 15 Mar 2022 00:22:59 +0000 (17:22 -0700)
commitcf4fc384a7fd73aea50bcf94434ab72957c4d019
tree4cdfb0435fbf4431b93253cda59b42e176a7aec5
parent9546183991f4d5ac1b5105b588a29a74ab3f56df
ice: use ice_is_vf_trusted helper function

The ice_vc_cfg_promiscuous_mode_msg function directly checks
ICE_VIRTCHNL_VF_CAP_PRIVILEGE, instead of using the existing helper
function ice_is_vf_trusted. Switch this to use the helper function so
that all trusted checks are consistent. This aids in any potential
future refactor by ensuring consistent code.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sriov.c