]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Fix fw reporter diagnose output
authorAya Levin <ayal@nvidia.com>
Tue, 16 Jan 2024 18:13:34 +0000 (20:13 +0200)
committerSasha Levin <sashal@kernel.org>
Fri, 15 Mar 2024 14:48:16 +0000 (10:48 -0400)
commit490b244bade913b4f673b30486398703e79fdd7c
treed77ec6a58578e63e3928cdcc350f33e660f3a83c
parent0ae51120e054523b5ca7fb02d510e5ccca0b1fee
net/mlx5: Fix fw reporter diagnose output

[ Upstream commit ac8082a3c7a158640a2c493ec437dd9da881a6a7 ]

Restore fw reporter diagnose to print the syndrome even if it is zero.
Following the cited commit, in this case (syndrome == 0) command returns no
output at all.

This fix restores command output in case syndrome is cleared:
$ devlink health diagnose pci/0000:82:00.0 reporter fw
    Syndrome: 0

Fixes: d17f98bf7cc9 ("net/mlx5: devlink health: use retained error fmsg API")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/health.c