Loading
ice: add E830 HW VF mailbox message limit support
stable inclusion from stable-v6.6.81 commit 52a98adcc48ed8d7834243a2b4c38f92b1770722 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IBWVSV CVE: CVE-2025-21883 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=52a98adcc48ed8d7834243a2b4c38f92b1770722 -------------------------------- [ Upstream commit 59f4d59b25aec39a015c0949f4ec235c7a839c44 ] 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> Stable-dep-of: 79990cf5e7ad ("ice: Fix deinitializing VF in error path") Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Ye Bin <yebin10@huawei.com>