OSDN Git Service

IB/mlx5: Add support for active_width and active_speed in RoCE
authorNoa Osherovich <noaos@mellanox.com>
Thu, 20 Apr 2017 17:53:33 +0000 (20:53 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Apr 2017 16:58:41 +0000 (12:58 -0400)
commitf1b65df5a232a2bd39a9b9e48b88a2b87cddef55
tree56b3d11c039922b5dfd7ce629cdcf8023b0c9e89
parent50f22fd8ecf9001f2813ed0255a26e95f18bb870
IB/mlx5: Add support for active_width and active_speed in RoCE

Add missing calculation and translation of active_width and
active_speed for RoCE.

Fixes: 3f89a643eb295 ('IB/mlx5: Extend query_device/port to ...')
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c