IB/CM: Change sgid to IB GID when handling CM request
authorDon Hiatt <don.hiatt@intel.com>
Tue, 14 Nov 2017 12:34:38 +0000 (04:34 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Dec 2017 23:19:40 +0000 (16:19 -0700)
commitc5c4e40e90b5c714248bcf4e8a63b1a1cd07c11e
tree1871150f26d51a5ebafb4e846fa0eab310ef7606
parent3cafad43e2dfb4b9cdabe3bb42bbffccf1e45538
IB/CM: Change sgid to IB GID when handling CM request

ULPs do not understand OPA GIDs and will reject CM requests
if the sgid does not match the local_gid. In order to
fix this behavior we convert the OPA GID back to an IB GID.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c