net/mlx5: Add debugfs counters for page commands failures
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 27 Jan 2022 05:51:14 +0000 (07:51 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Mar 2022 21:33:02 +0000 (13:33 -0800)
commit32071187e9fb18da62f5be569bd2ea0d7a981ee8
tree0d99bad7718bcaaf05467947882a0b852d667164
parent4e05cbf05c66ca6931ee4f2a5aff0d84f1e65f40
net/mlx5: Add debugfs counters for page commands failures

Add the following new debugfs counters for debug and verbosity:
fw_pages_alloc_failed - number of pages FW requested but driver failed
to allocate.
give_pages_dropped - number of pages given to FW, but command give pages
failed by FW.
reclaim_pages_discard - number of pages which were about to reclaim back
and FW failed the command.

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/debugfs.c
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c
include/linux/mlx5/driver.h