IB/mlx5: Fix mapping of link-mode to IB width and speed
authorAya Levin <ayal@mellanox.com>
Mon, 11 Mar 2019 12:35:58 +0000 (14:35 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Mar 2019 00:40:39 +0000 (21:40 -0300)
commitcd27287562d69629c5f007c6f64c27b6ff15f3e5
treed849cdb1a9f7968f5e536068760aead4c141f076
parentc5ae1954c47d3fd8815bd5a592aba18702c93f33
IB/mlx5: Fix mapping of link-mode to IB width and speed

Add mapping of link mode: CAUI4 100Gbps CR4/KR4 with 4 lines and 25Gbps.
Fix mapping of link mode: GAUI2 50Gbps CR2/KR2 to be 2 lines with 25Gbps.

Fixes: 08e8676f1607 ("IB/mlx5: Add support for 50Gbps per lane link modes")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c