IB/mlx5: Add support for 400G_8X lane speed
authorMaher Sanalla <msanalla@nvidia.com>
Thu, 16 Mar 2023 13:40:49 +0000 (15:40 +0200)
committerLeon Romanovsky <leon@kernel.org>
Mon, 20 Mar 2023 07:51:17 +0000 (09:51 +0200)
commit88c9483faf15ada14eca82714114656893063458
tree1d9e30474a8448f87ce207ca225736c6b01247e1
parente4522c097ec10f23ea0933e9e69d4fa9d8ae9441
IB/mlx5: Add support for 400G_8X lane speed

Currently, when driver queries PTYS to report which link speed is being
used on its RoCE ports, it does not check the case of having 400Gbps
transmitted over 8 lanes. Thus it fails to report the said speed and
instead it defaults to report 10G over 4 lanes.

Add a check for the said speed when querying PTYS and report it back
correctly when needed.

Fixes: 08e8676f1607 ("IB/mlx5: Add support for 50Gbps per lane link modes")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/ec9040548d119d22557d6a4b4070d6f421701fd4.1678973994.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/main.c