IB/SA: Add support to query OPA path records
When the bit 26 of capmask2 field in OPA classport info query is set, SA will query for OPA path records instead of querying for IB path records. Note that OPA path records can only be queried by kernel ULPs. Userspace clients continue to query IB path records. Reviewed-by: Don Hiatt <don.hiatt@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Цей коміт міститься в:

зафіксовано
Doug Ledford

джерело
5752075144
коміт
4c33bd1926
@@ -312,7 +312,11 @@ static int srp_new_cm_id(struct srp_rdma_ch *ch)
|
||||
if (ch->cm_id)
|
||||
ib_destroy_cm_id(ch->cm_id);
|
||||
ch->cm_id = new_cm_id;
|
||||
ch->path.rec_type = SA_PATH_REC_TYPE_IB;
|
||||
if (rdma_cap_opa_ah(target->srp_host->srp_dev->dev,
|
||||
target->srp_host->port))
|
||||
ch->path.rec_type = SA_PATH_REC_TYPE_OPA;
|
||||
else
|
||||
ch->path.rec_type = SA_PATH_REC_TYPE_IB;
|
||||
ch->path.sgid = target->sgid;
|
||||
ch->path.dgid = target->orig_dgid;
|
||||
ch->path.pkey = target->pkey;
|
||||
|
Посилання в новій задачі
Заблокувати користувача