]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ice: merge ice_mbx_report_malvf with ice_mbx_vf_state_handler
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 22 Feb 2023 17:09:12 +0000 (09:09 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 13 Mar 2023 18:00:10 +0000 (11:00 -0700)
commit07cc1a942216d1f211f1c641af8b6f810bb16699
tree37324c1559a121a8b59035a6352c554f5e56a78d
parent4bdf5f258331f049bbff2d770cfcb62f6b789dfe
ice: merge ice_mbx_report_malvf with ice_mbx_vf_state_handler

The ice_mbx_report_malvf function is used to update the
ice_mbx_vf_info.malicious member after we detect a malicious VF. This is
done by calling ice_mbx_report_malvf after ice_mbx_vf_state_handler sets
its "is_malvf" return parameter true.

Instead of requiring two steps, directly update the malicious bit in the
state handler, and remove the need for separately calling
ice_mbx_report_malvf.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Marek Szlosek <marek.szlosek@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_sriov.c
drivers/net/ethernet/intel/ice/ice_vf_mbx.c
drivers/net/ethernet/intel/ice/ice_vf_mbx.h