net/mlx5e: Fix RQ SW state layout in RQ devlink health diagnostics
authorAdham Faris <afaris@nvidia.com>
Wed, 15 Mar 2023 13:12:45 +0000 (15:12 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:34 +0000 (18:57 -0700)
commit6bd0f349ae70ce1fd325edee23fbe1d27dfbecb6
treea8897427cdd6e1f5608177e8ddbb9854f800fe31
parentcf1cccae79836aceaecc1d6a2d1c955d1e2e8b0c
net/mlx5e: Fix RQ SW state layout in RQ devlink health diagnostics

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

Preceding the RQ'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_rx.c