IB/mlx5: Respect mlx5_core reserved GIDs
authorIlan Tayari <ilant@mellanox.com>
Sun, 14 May 2017 13:04:30 +0000 (16:04 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 27 Jun 2017 13:36:47 +0000 (16:36 +0300)
commit095b0927f0ce74f7211b9046f8493dbba26ca930
tree8721533c050280f99905f9505287b34ff188e1bd
parenta6f7d2aff623bb7572d4bca1caf5820e0cd5a586
IB/mlx5: Respect mlx5_core reserved GIDs

Reserved gids are taken by the mlx5_core, report smaller GID table
size to IB core.

Set mlx5_query_roce_port's return value back to int. In case of
error, return an indication. This rolls back some of the change
in commit 50f22fd8ecf9 ("IB/mlx5: Set mlx5_query_roce_port's return value to void")

Change set_roce_addr to use gid_set function, instead of directly
sending the command.

Signed-off-by: Ilan Tayari <ilant@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/infiniband/hw/mlx5/main.c