summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx5/cong.c
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@nvidia.com>2022-02-18 10:36:20 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2022-03-10 00:33:02 +0300
commit66771a1c729e816dc84e29ba555013b6e722fb22 (patch)
treeeb297ede504b4300a58a2ab15cb23fb4685b0bd2 /drivers/infiniband/hw/mlx5/cong.c
parentd2cb8dda214fb75f946ba554a1ecd25da7004b2b (diff)
downloadlinux-66771a1c729e816dc84e29ba555013b6e722fb22.tar.xz
net/mlx5: Move debugfs entries to separate struct
Move the debugfs entry pointers under priv to their own struct. Add get function for device debugfs root. 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 'drivers/infiniband/hw/mlx5/cong.c')
-rw-r--r--drivers/infiniband/hw/mlx5/cong.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx5/cong.c b/drivers/infiniband/hw/mlx5/cong.c
index 0b61df52332a..290ea8ac3838 100644
--- a/drivers/infiniband/hw/mlx5/cong.c
+++ b/drivers/infiniband/hw/mlx5/cong.c
@@ -433,8 +433,7 @@ void mlx5_ib_init_cong_debugfs(struct mlx5_ib_dev *dev, u32 port_num)
dev->port[port_num].dbg_cc_params = dbg_cc_params;
- dbg_cc_params->root = debugfs_create_dir("cc_params",
- mdev->priv.dbg_root);
+ dbg_cc_params->root = debugfs_create_dir("cc_params", mlx5_debugfs_get_dev_root(mdev));
for (i = 0; i < MLX5_IB_DBG_CC_MAX; i++) {
dbg_cc_params->params[i].offset = i;