]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit571766b9635cfc893dddbb30376432f413d5f93b
treeac54d4d9a841eb1be5c2df5ff5eb82fc51849399
parent84302ae6098e92cd03abadf6ac670ab748952774
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