]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Add sensor name to temperature event message
authorShahar Shitrit <shshitrit@nvidia.com>
Thu, 13 Feb 2025 09:46:41 +0000 (11:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 00:27:38 +0000 (16:27 -0800)
commit46fd50cfcc12368bed9ae5257cc3beaea5b3c193
tree624ab24b668bd996f6351498a318a97c78d9f446
parent633f16d7e07c129a36b882c05379e01ce5bdb542
net/mlx5: Add sensor name to temperature event message

Previously, a temperature event message included a bitmap indicating
which sensors detect high temperatures.

To enhance clarity, we modify the message format to explicitly list
the names of the overheating sensors, alongside the sensors bitmap.
If HWMON is not configured, the event message remains unchanged.

Signed-off-by: Shahar Shitrit <shshitrit@nvidia.com>
Reviewed-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250213094641.226501-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/events.c
drivers/net/ethernet/mellanox/mlx5/core/hwmon.c
drivers/net/ethernet/mellanox/mlx5/core/hwmon.h