net/mlx5e: Fix SQ SW state layout in SQ devlink health diagnostics
authorAdham Faris <afaris@nvidia.com>
Wed, 15 Mar 2023 14:36:22 +0000 (16:36 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:34 +0000 (18:57 -0700)
commitb0d87ed27be7853af8f897c3cfcb9ddc5179a2a3
tree1effc41fd84de63cc0a496fdbe05e47fd2bd300b
parent6bd0f349ae70ce1fd325edee23fbe1d27dfbecb6
net/mlx5e: Fix SQ SW state layout in SQ devlink health diagnostics

Remove nesting level before SQ's SW state title and before SQ's SW
state capabilities line.

Preceding the SQ's SW state with a nameless nesting, wraps the inner SW
state map/dictionary with a nameless dictionary which is prohibited in
JSON file format.

Removing preceding SW state nest by removing function call
devlink_fmsg_obj_nest_start() and devlink_fmsg_obj_nest_end().

Signed-off-by: Adham Faris <afaris@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c