diff mbox series

[rdma-next] IB/mlx5: Fix missing congestion control debugfs on rep rdma device

Message ID 20200227125407.99803-1-leon@kernel.org (mailing list archive)
State Mainlined
Commit 79db784e794b6e7b7fb9b1dd464a34e4c0c039af
Delegated to: Jason Gunthorpe
Headers show
Series [rdma-next] IB/mlx5: Fix missing congestion control debugfs on rep rdma device | expand

Commit Message

Leon Romanovsky Feb. 27, 2020, 12:54 p.m. UTC
From: Parav Pandit <parav@mellanox.com>

Cited commit missed to include low level congestion control
related debugfs stage initialization.
This resulted in missing debugfs entries for cc_params of
a RDMA device.

Add them back.

Fixes: b5ca15ad7e61 ("IB/mlx5: Add proper representors support")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
---
 drivers/infiniband/hw/mlx5/main.c | 3 +++
 1 file changed, 3 insertions(+)

--
2.24.1

Comments

Jason Gunthorpe March 4, 2020, 6:22 p.m. UTC | #1
On Thu, Feb 27, 2020 at 02:54:07PM +0200, Leon Romanovsky wrote:
> From: Parav Pandit <parav@mellanox.com>
> 
> Cited commit missed to include low level congestion control
> related debugfs stage initialization.
> This resulted in missing debugfs entries for cc_params of
> a RDMA device.
> 
> Add them back.
> 
> Fixes: b5ca15ad7e61 ("IB/mlx5: Add proper representors support")
> Signed-off-by: Parav Pandit <parav@mellanox.com>
> Reviewed-by: Mark Bloch <markb@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> ---
>  drivers/infiniband/hw/mlx5/main.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied to for-next, thanks

Jason
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index ec8ed90d2b60..f5d42985113c 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -7080,6 +7080,9 @@  const struct mlx5_ib_profile raw_eth_profile = {
 	STAGE_CREATE(MLX5_IB_STAGE_COUNTERS,
 		     mlx5_ib_stage_counters_init,
 		     mlx5_ib_stage_counters_cleanup),
+	STAGE_CREATE(MLX5_IB_STAGE_CONG_DEBUGFS,
+		     mlx5_ib_stage_cong_debugfs_init,
+		     mlx5_ib_stage_cong_debugfs_cleanup),
 	STAGE_CREATE(MLX5_IB_STAGE_UAR,
 		     mlx5_ib_stage_uar_init,
 		     mlx5_ib_stage_uar_cleanup),