IB/mlx5: Add support for NDR link speed
authorMeir Lichtinger <meirl@mellanox.com>
Mon, 26 Oct 2020 13:37:38 +0000 (15:37 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 Nov 2020 19:48:57 +0000 (15:48 -0400)
commitf946e45f59ef01ff54ffb3b1eba3a8e7915e7326
tree6a5e4ac80ce5fe6e24c763a0c24b1923d11391f5
parentc7adf7717301558e8852949d8e3dc3748d1a4a97
IB/mlx5: Add support for NDR link speed

The IBTA specification has new speed - NDR. That speed supports signaling
rate of 100Gb. mlx5 IB driver translates link modes reported by ConnectX
device to IB speed and width. Added translation of new 100Gb, 200Gb and
400Gb link modes to NDR IB type and width of x1, x2 or x4 respectively.

Link: https://lore.kernel.org/r/20201026133738.1340432-3-leon@kernel.org
Signed-off-by: Meir Lichtinger <meirl@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c