OSDN Git Service

net/mlx5: Add command failures data to debugfs
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 27 Jan 2022 13:22:21 +0000 (15:22 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Mar 2022 21:33:00 +0000 (13:33 -0800)
commit34f46ae0d4b38e83cfb26fb6f06b5b5efea47fdc
tree01b306b28b56a5b2c11950217f5aac8958b1b5ef
parent371c2b349d927e81710f6ac2826d7fcb0374280f
net/mlx5: Add command failures data to debugfs

Add new counters to command interface debugfs to count command failures.
The following counters added:
total_failed - number of times command failed (any kind of failure).
failed_mbox_status - number of times command failed on bad status
returned by FW.

In addition, add data about last command failure to command interface
debugfs:
last_failed_errno - last command failed returned errno.
last_failed_mbox_status - last bad status returned by FW.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
drivers/net/ethernet/mellanox/mlx5/core/debugfs.c
include/linux/mlx5/driver.h