RDMA/cma: Set default GID type as RoCE when resolving RoCE route
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:00 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:06 +0000 (15:37 -0700)
commit5c181bda77f409d89ad513528eccac5f3a416474
treeac54d4d9a841eb1be5c2df5ff5eb82fc51849399
parentedf1a84fe37c51290e2c88154ecaf48dadff3d27
RDMA/cma: Set default GID type as RoCE when resolving RoCE route

As the function name suggests cma_resolve_iboe_route() resolves RoCE
route. However, its default GID type is IB_GID_TYPE_IB and not
IB_GID_TYPE_ROCE, even though both are mapped to the same enum value.
Change default GID type to IB_GID_TYPE_ROCE.

cma_iboe_set_mgid() is updated to reflect the RoCEv2 GID check.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c