]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ice: add E830 HW VF mailbox message limit support
authorPaul Greenwalt <paul.greenwalt@intel.com>
Tue, 20 Aug 2024 21:26:16 +0000 (17:26 -0400)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 8 Oct 2024 21:37:15 +0000 (14:37 -0700)
commit59f4d59b25aec39a015c0949f4ec235c7a839c44
tree2509bbbb752050eec414927bdde81b8c51c75e17
parentb699c81af0683ad5b7a7e2b3ef4ae3ff8ee41153
ice: add E830 HW VF mailbox message limit support

E830 adds hardware support to prevent the VF from overflowing the PF
mailbox with VIRTCHNL messages. E830 will use the hardware feature
(ICE_F_MBX_LIMIT) instead of the software solution ice_is_malicious_vf().

To prevent a VF from overflowing the PF, the PF sets the number of
messages per VF that can be in the PF's mailbox queue
(ICE_MBX_OVERFLOW_WATERMARK). When the PF processes a message from a VF,
the PF decrements the per VF message count using the E830_MBX_VF_DEC_TRIG
register.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice.h
drivers/net/ethernet/intel/ice/ice_hw_autogen.h
drivers/net/ethernet/intel/ice/ice_lib.c
drivers/net/ethernet/intel/ice/ice_main.c
drivers/net/ethernet/intel/ice/ice_sriov.c
drivers/net/ethernet/intel/ice/ice_vf_lib.c
drivers/net/ethernet/intel/ice/ice_vf_mbx.c
drivers/net/ethernet/intel/ice/ice_vf_mbx.h
drivers/net/ethernet/intel/ice/ice_virtchnl.c