mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 03:35:32 -04:00
net/mlx5: HWS, Log syndrome on STC modify failure
When mlx5_cmd_exec fails for STC modify, include the command syndrome from the output buffer in the error message to aid debugging. Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Erez Shitrit <erezsh@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260816142045.3289452-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
dcb09aae19
commit
d4c34eebf1
@@ -611,9 +611,11 @@ int mlx5hws_cmd_stc_modify(struct mlx5_core_dev *mdev,
|
||||
|
||||
ret = mlx5_cmd_exec(mdev, in, sizeof(in), out, sizeof(out));
|
||||
if (ret)
|
||||
mlx5_core_err(mdev, "Failed to modify STC FW action_type %d\n",
|
||||
stc_attr->action_type);
|
||||
|
||||
mlx5_core_err(mdev,
|
||||
"Failed to modify STC action_type %d, err %d, syndrome 0x%x\n",
|
||||
stc_attr->action_type, ret,
|
||||
MLX5_GET(general_obj_out_cmd_hdr,
|
||||
out, syndrome));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user