IB/mlx5: Add np_min_time_between_cnps and rp_max_rate debug params
authorParav Pandit <parav@mellanox.com>
Thu, 27 Feb 2020 12:52:46 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Mar 2020 18:20:03 +0000 (14:20 -0400)
commit9e3aaf6883b3b47d9f14579c1a03c911dd17cf10
tree6f7686e986e814c0f880cad8ba9bacde492979f5
parent91b74bf5310b22ac3286d8e9b5354b77f41af178
IB/mlx5: Add np_min_time_between_cnps and rp_max_rate debug params

Add two debugfs parameters described below.

np_min_time_between_cnps - Minimum time between sending CNPs from the
                           port.
                           Unit = microseconds.
                           Default = 0 (no min wait time; generated
                           based on incoming ECN marked packets).

rp_max_rate - Maximum rate at which reaction point node can transmit.
              Once this limit is reached, RP is no longer rate limited.
              Unit = Mbits/sec
              Default = 0 (full speed)

Link: https://lore.kernel.org/r/20200227125246.99472-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/cong.c
drivers/infiniband/hw/mlx5/mlx5_ib.h