All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-next] RDMA/mlx5: Support 400Gbps IB rate in mlx5 driver
@ 2021-02-09 13:04 Leon Romanovsky
  2021-02-09 18:12 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Leon Romanovsky @ 2021-02-09 13:04 UTC (permalink / raw)
  To: Doug Ledford, Jason Gunthorpe
  Cc: Patrisious Haddad, linux-rdma, Maor Gottlieb, Mark Zhang

From: Patrisious Haddad <phaddad@nvidia.com>

Support 400Gbps IB rate in mlx5 driver.

Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
---
 drivers/infiniband/hw/mlx5/qp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 6e88bdc0b30e..38df809a1bd5 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -3070,6 +3070,8 @@ static int ib_to_mlx5_rate_map(u8 rate)
 		return 4;
 	case IB_RATE_50_GBPS:
 		return 5;
+	case IB_RATE_400_GBPS:
+		return 6;
 	default:
 		return rate + MLX5_STAT_RATE_OFFSET;
 	}
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH rdma-next] RDMA/mlx5: Support 400Gbps IB rate in mlx5 driver
  2021-02-09 13:04 [PATCH rdma-next] RDMA/mlx5: Support 400Gbps IB rate in mlx5 driver Leon Romanovsky
@ 2021-02-09 18:12 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2021-02-09 18:12 UTC (permalink / raw)
  To: Leon Romanovsky
  Cc: Doug Ledford, Patrisious Haddad, linux-rdma, Maor Gottlieb, Mark Zhang

On Tue, Feb 09, 2021 at 03:04:29PM +0200, Leon Romanovsky wrote:
> From: Patrisious Haddad <phaddad@nvidia.com>
> 
> Support 400Gbps IB rate in mlx5 driver.
> 
> Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
> Signed-off-by: Mark Zhang <markzhang@nvidia.com>
> Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
> ---
>  drivers/infiniband/hw/mlx5/qp.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied to for-next, thanks

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-09 18:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 13:04 [PATCH rdma-next] RDMA/mlx5: Support 400Gbps IB rate in mlx5 driver Leon Romanovsky
2021-02-09 18:12 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.