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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 00:27:37 +0000 (16:27 -0800)
commit9dd3d5d258aceb37bdf09c8b91fa448f58ea81f0
treec84b4cb2358cf60a073d537bf694ed951074e199
parent6626f11c5183065452606dfc0ed97d9cfcb8f082
net/mlx5: Apply rate-limiting to high temperature warning

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>
drivers/net/ethernet/mellanox/mlx5/core/events.c