IB/mlx5: Reduce the use of num_port capability
authorDaniel Jurgens <danielj@mellanox.com>
Thu, 4 Jan 2018 15:25:34 +0000 (17:25 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 8 Jan 2018 18:42:21 +0000 (11:42 -0700)
commit508562d6f708888b10127c2892513f76ea8b22ba
tree948375b7e7d89c057f2811bbabd20c658b3d6930
parent908d6460b3d81dd2dca9e9e8fc7fa19b5a1e4d99
IB/mlx5: Reduce the use of num_port capability

Remove use of the num_ports general capability throughout. The number of
ports will be variable in the future, and reported in a different way.

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/mad.c
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c