IB/CM: Set appropriate slid and dlid when handling CM request
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Thu, 8 Jun 2017 17:38:04 +0000 (13:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 8 Aug 2017 18:50:40 +0000 (14:50 -0400)
commitac3a949fb2fff36bebdc4fab90567ed349ea7245
tree65ab9367a5ca579ee4167a10d4e4e1f0ddce4f80
parent6b3c0e6e6d5abfefb0112cd450e0aee97fcab7a8
IB/CM: Set appropriate slid and dlid when handling CM request

If extended LIDs are being used, a connection request contains
OPA GIDs in them. Extract the lids from the OPA gids and populate
slid/dlid fields in the path records that are created when handling
a connection request.

Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Reviewed-by: Don Hiatt <don.hiatt@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cm.c