]> 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:38:01 +0000 (14:38 +0200)
commitd5db6ffb03fa34f653456a3a01202f83dd6ec42a
treec8671209ef0d26f75ccb9534bec1d8f045547f1a
parent937b9c41cc7129d167e0cae97271069abfde8081
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