IB/mlx5: Implement dual port functionality in query routines
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 4 Jan 2018 15:25:38 +0000 (17:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jan 2018 18:42:22 +0000 (11:42 -0700)
commitb3cbd6f080c90f64fa425589d20fe4506d96fb19
tree181f43c4cd9586200abd4c29086b1721ca4a84cf
parentd69a24e036596877ce08c25ab8e63a202412fd9e
IB/mlx5: Implement dual port functionality in query routines

Port operations must be routed to their native mlx5_core_dev. A
multiport RoCE device registers itself as having 2 ports even before a
2nd port is affiliated. If an unaffilated port is queried use capability
information from the master port, these values are the same.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c