net/mlx5: Add pages debugfs
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 27 Jan 2022 05:03:33 +0000 (07:03 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Mar 2022 21:33:02 +0000 (13:33 -0800)
commit4e05cbf05c66ca6931ee4f2a5aff0d84f1e65f40
tree0e681a38476723767404e2d4b47f10889c0a2723
parent66771a1c729e816dc84e29ba555013b6e722fb22
net/mlx5: Add pages debugfs

Add pages debugfs to expose the following counters for debuggability:
fw_pages_total - How many pages were given to FW and not returned yet.
vfs_pages - For SRIOV, how many pages were given to FW for virtual
functions usage.
host_pf_pages - For ECPF, how many pages were given to FW for external
hosts physical functions usage.

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