summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNimrod Oren <noren@nvidia.com>2026-05-14 13:49:25 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-19 02:12:47 +0300
commit9fe78db3ad1737f393b18b04220a158b45e6dd91 (patch)
tree8c2eef4106f08dea379307a7571e03607256d596 /include/linux
parent0e222299714f585a97f226e9e3b3d22ea51f79f6 (diff)
downloadlinux-9fe78db3ad1737f393b18b04220a158b45e6dd91.tar.xz
net/mlx5: add debugfs stats for frag buf dma pools
Add a debugfs file exposing per-node DMA pool usage for mlx5_frag_buf allocations. # cat /sys/kernel/debug/mlx5/<dev>/frag_buf_dma_pools node block_size used_blocks allocated_blocks 0 4096 0 0 0 8192 0 0 0 16384 0 0 0 32768 0 0 0 65536 0 0 1 4096 0 0 1 8192 0 0 1 16384 0 0 1 32768 0 0 1 65536 0 0 Signed-off-by: Nimrod Oren <noren@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260514104925.337570-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 8b4d384125d1..9a4bb25d8e0a 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -547,6 +547,7 @@ struct mlx5_debugfs_entries {
struct dentry *eq_debugfs;
struct dentry *cq_debugfs;
struct dentry *cmdif_debugfs;
+ struct dentry *frag_buf_dma_pools_debugfs;
struct dentry *pages_debugfs;
struct dentry *lag_debugfs;
};