aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrisious Haddad <[email protected]>2021-02-09 15:04:29 +0200
committerJason Gunthorpe <[email protected]>2021-02-09 14:00:35 -0400
commitc70f51de85302e76a59f6c6ce3dcd27b6411d23b (patch)
treeb7644c56d273431182fe940aabd96361dbe9b9cb
parenta14e3caaaa72e9c5c91e823dde3383122215207d (diff)
RDMA/mlx5: Support 400Gbps IB rate in mlx5 driver
Support 400Gbps IB rate in mlx5 driver. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Patrisious Haddad <[email protected]> Signed-off-by: Mark Zhang <[email protected]> Reviewed-by: Maor Gottlieb <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
-rw-r--r--drivers/infiniband/hw/mlx5/qp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index 358c44c5a8fc..b15342a1fff3 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -3069,6 +3069,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;
}