diff options
author | Moshe Shemesh <moshe@nvidia.com> | 2022-02-18 09:36:20 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-03-09 13:33:02 -0800 |
commit | 66771a1c729e816dc84e29ba555013b6e722fb22 (patch) | |
tree | eb297ede504b4300a58a2ab15cb23fb4685b0bd2 /drivers/infiniband/hw/mlx5/main.c | |
parent | d2cb8dda214fb75f946ba554a1ecd25da7004b2b (diff) | |
download | linux-stable-66771a1c729e816dc84e29ba555013b6e722fb22.tar.gz linux-stable-66771a1c729e816dc84e29ba555013b6e722fb22.tar.bz2 linux-stable-66771a1c729e816dc84e29ba555013b6e722fb22.zip |
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/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 85f526c861e9..32a0ea820573 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -4178,7 +4178,7 @@ static int mlx5_ib_stage_delay_drop_init(struct mlx5_ib_dev *dev) if (!mlx5_debugfs_root) return 0; - root = debugfs_create_dir("delay_drop", dev->mdev->priv.dbg_root); + root = debugfs_create_dir("delay_drop", mlx5_debugfs_get_dev_root(dev->mdev)); dev->delay_drop.dir_debugfs = root; debugfs_create_atomic_t("num_timeout_events", 0400, root, |