aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@nvidia.com>2022-01-27 07:51:14 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-03-09 13:33:02 -0800
commit32071187e9fb18da62f5be569bd2ea0d7a981ee8 (patch)
tree0d99bad7718bcaaf05467947882a0b852d667164 /include/linux/mlx5/driver.h
parentnet/mlx5: Add pages debugfs (diff)
downloadlinux-dev-32071187e9fb18da62f5be569bd2ea0d7a981ee8.tar.xz
linux-dev-32071187e9fb18da62f5be569bd2ea0d7a981ee8.zip
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>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index c5f93b5910ed..00a914b0716e 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -575,6 +575,9 @@ struct mlx5_priv {
struct list_head free_list;
u32 vfs_pages;
u32 host_pf_pages;
+ u32 fw_pages_alloc_failed;
+ u32 give_pages_dropped;
+ u32 reclaim_pages_discard;
struct mlx5_core_health health;
struct list_head traps;