]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Avoid printing health buffer when firmware is unavailable
authorAya Levin <ayal@nvidia.com>
Tue, 9 Nov 2021 13:44:58 +0000 (15:44 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:48 +0000 (20:31 -0800)
commitba574dd8ae946a36db4541f437143e7a9d6808d4
treedabac0a4a669f9b33f9edeadb316de81fcfbde1b
parent93b8f0cbc74114d32459e3e3b32bb78ad8c13e39
net/mlx5: Avoid printing health buffer when firmware is unavailable

Use firmware version field as an indication to health buffer's sanity.
When firmware version is 0xFFFFFFFF, deduce that firmware is unavailable
and avoid printing the health buffer to dmesg as it doesn't provide
debug info.

Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Gal Pressman <gal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/health.c