> + /* > + * If the gid in the request is an OPA GID, > + * create an OPA PR > + */ > + if (ib_is_opa_gid(&req_msg->primary_local_gid) && > + rdma_cap_opa_ah(work->port->cm_dev->ib_device, > + work->port->port_num)) > + work->path[0].rec_type = SA_PATH_REC_TYPE_OPA; > + else > + work->path[0].rec_type = SA_PATH_REC_TYPE_IB; Maybe create a function for this logic (repeated 3 times)? E.g. cm_path_rec_type(device, port, gid) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html