]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Apply rate-limiting to high temperature warning
authorShahar Shitrit <shshitrit@nvidia.com>
Thu, 13 Feb 2025 09:46:38 +0000 (11:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:13 +0000 (14:40 +0200)
commit963bac7f04f6bee673d1c0cadca3e95b03451d1c
tree7d32ec6ddef3c8afe591b973147b09d31936c2a6
parent89acf46b9ec1a69b32407ded84388a3052e3549d
net/mlx5: Apply rate-limiting to high temperature warning

[ Upstream commit 9dd3d5d258aceb37bdf09c8b91fa448f58ea81f0 ]

Wrap the high temperature warning in a temperature event with
a call to net_ratelimit() to prevent flooding the kernel log
with repeated warning messages when temperature exceeds the
threshold multiple times within a short duration.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Link: https://patch.msgid.link/20250213094641.226501-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/events.c