[Intel-wired-lan] [net-next PATCH 11/25] ice: use ice_is_vf_trusted helper function
Jankowski, Konrad0
konrad0.jankowski at intel.com
Wed Mar 2 20:01:21 UTC 2022
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jacob Keller
> Sent: Wednesday, February 23, 2022 1:27 AM
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Subject: [Intel-wired-lan] [net-next PATCH 11/25] 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 at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_sriov.c | 20 ++++++++++----------
> 1 file changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_sriov.c
> b/drivers/net/ethernet/intel/ice/ice_sriov.c
> index d41fce16ddfb..432841ab4352 100644
> --- a/drivers/net/ethernet/intel/ice/ice_sriov.c
> +++ b/drivers/net/ethernet/intel/ice/ice_sriov.c
> @@ -3148,6 +3148,15 @@ int ice_set_vf_spoofchk(struct net_device
Tested-by: Konrad Jankowski <konrad0.jankowski at intel.com>
More information about the Intel-wired-lan
mailing list