[Intel-wired-lan] [intel-next PATCH 11/14] ice: pass mbxdata to ice_is_malicious_vf()
Szlosek, Marek
marek.szlosek at intel.com
Fri Mar 10 13:18:35 UTC 2023
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Jacob Keller
> Sent: środa, 22 lutego 2023 18:09
> To: Intel Wired LAN <intel-wired-lan at lists.osuosl.org>
> Cc: Nguyen, Anthony L <anthony.l.nguyen at intel.com>; Brandeburg, Jesse
> <jesse.brandeburg at intel.com>
> Subject: [Intel-wired-lan] [intel-next PATCH 11/14] ice: pass mbxdata to
> ice_is_malicious_vf()
>
> The ice_is_malicious_vf() function takes information about the current state
> of the mailbox during a single interrupt. This information includes the
> number of messages processed so far, as well as the number of pending
> messages not yet processed.
>
> A future refactor is going to make ice_vc_process_vf_msg() call
> ice_is_malicious_vf() instead of having it called separately in ice_main.c This
> change will require passing all the necessary arguments into
> ice_vc_process_vf_msg().
>
> To make this simpler, have the main loop fill in the struct ice_mbx_data and
> pass that rather than passing in the num_msg_proc and num_msg_pending.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> Reviewed-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_main.c | 10 +++++++++-
> drivers/net/ethernet/intel/ice/ice_sriov.c | 14 +++-----------
> drivers/net/ethernet/intel/ice/ice_sriov.h | 5 ++---
> 3 files changed, 14 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_main.c
> b/drivers/net/ethernet/intel/ice/ice_main.c
> index 615a731d7afe..a7e7a186009e 100644
> --- a/drivers/net/ethernet/intel/ice/ice_main.c
> +++ b/drivers/net/ethernet/intel/ice/ice_main.c
Tested-by: Marek Szlosek <marek.szlosek at intel.com>
More information about the Intel-wired-lan
mailing list