struct ib_cm_id *listen_id;
uint8_t port;
- struct ib_sa_path_rec *primary_path;
- struct ib_sa_path_rec *alternate_path;
+ struct ibv_sa_path_rec *primary_path;
+ struct ibv_sa_path_rec *alternate_path;
uint64_t remote_ca_guid;
uint32_t remote_qkey;
};
struct ib_cm_lap_event_param {
- struct ib_sa_path_rec *alternate_path;
+ struct ibv_sa_path_rec *alternate_path;
};
enum ib_cm_apr_status {
uint64_t service_mask);
struct ib_cm_req_param {
- struct ib_sa_path_rec *primary_path;
- struct ib_sa_path_rec *alternate_path;
+ struct ibv_sa_path_rec *primary_path;
+ struct ibv_sa_path_rec *alternate_path;
uint64_t service_id;
uint32_t qp_num;
enum ibv_qp_type qp_type;
* @private_data_len: Size of the private data buffer, in bytes.
*/
int ib_cm_send_lap(struct ib_cm_id *cm_id,
- struct ib_sa_path_rec *alternate_path,
+ struct ibv_sa_path_rec *alternate_path,
void *private_data,
uint8_t private_data_len);
uint8_t private_data_len);
struct ib_cm_sidr_req_param {
- struct ib_sa_path_rec *path;
+ struct ibv_sa_path_rec *path;
uint64_t service_id;
int timeout_ms;
void *private_data;
return (result > 0) ? -ENODATA : result;
*qp_attr_mask = resp->qp_attr_mask;
- ib_copy_qp_attr_from_kern(qp_attr, resp);
+ ibv_copy_qp_attr_from_kern(qp_attr, resp);
return 0;
}
int ib_cm_send_req(struct ib_cm_id *cm_id, struct ib_cm_req_param *param)
{
- struct ib_kern_path_rec *p_path;
- struct ib_kern_path_rec *a_path;
+ struct ibv_kern_path_rec *p_path;
+ struct ibv_kern_path_rec *a_path;
struct cm_abi_req *cmd;
void *msg;
int result;
if (!p_path)
return -ENOMEM;
- ib_copy_path_rec_to_kern(p_path, param->primary_path);
+ ibv_copy_path_rec_to_kern(p_path, param->primary_path);
cmd->primary_path = (uintptr_t) p_path;
}
if (!a_path)
return -ENOMEM;
- ib_copy_path_rec_to_kern(a_path, param->alternate_path);
+ ibv_copy_path_rec_to_kern(a_path, param->alternate_path);
cmd->alternate_path = (uintptr_t) a_path;
}
}
int ib_cm_send_lap(struct ib_cm_id *cm_id,
- struct ib_sa_path_rec *alternate_path,
+ struct ibv_sa_path_rec *alternate_path,
void *private_data,
uint8_t private_data_len)
{
- struct ib_kern_path_rec *abi_path;
+ struct ibv_kern_path_rec *abi_path;
struct cm_abi_lap *cmd;
void *msg;
int result;
if (!abi_path)
return -ENOMEM;
- ib_copy_path_rec_to_kern(abi_path, alternate_path);
+ ibv_copy_path_rec_to_kern(abi_path, alternate_path);
cmd->path = (uintptr_t) abi_path;
}
int ib_cm_send_sidr_req(struct ib_cm_id *cm_id,
struct ib_cm_sidr_req_param *param)
{
- struct ib_kern_path_rec *abi_path;
+ struct ibv_kern_path_rec *abi_path;
struct cm_abi_sidr_req *cmd;
void *msg;
int result;
if (!abi_path)
return -ENOMEM;
- ib_copy_path_rec_to_kern(abi_path, param->path);
+ ibv_copy_path_rec_to_kern(abi_path, param->path);
cmd->path = (uintptr_t) abi_path;
}
ureq->srq = kreq->srq;
ureq->port = kreq->port;
- ib_copy_path_rec_from_kern(ureq->primary_path, &kreq->primary_path);
+ ibv_copy_path_rec_from_kern(ureq->primary_path, &kreq->primary_path);
if (ureq->alternate_path)
- ib_copy_path_rec_from_kern(ureq->alternate_path,
- &kreq->alternate_path);
+ ibv_copy_path_rec_from_kern(ureq->alternate_path,
+ &kreq->alternate_path);
}
static void cm_event_rep_get(struct ib_cm_rep_event_param *urep,
struct cm_abi_event_get *cmd;
struct cm_abi_event_resp *resp;
struct ib_cm_event *evt = NULL;
- struct ib_sa_path_rec *path_a = NULL;
- struct ib_sa_path_rec *path_b = NULL;
+ struct ibv_sa_path_rec *path_a = NULL;
+ struct ibv_sa_path_rec *path_b = NULL;
void *data = NULL;
void *info = NULL;
void *msg;
case IB_CM_LAP_RECEIVED:
evt->param.lap_rcvd.alternate_path = path_b;
path_b = NULL;
- ib_copy_path_rec_from_kern(evt->param.lap_rcvd.alternate_path,
- &resp->u.lap_resp.path);
+ ibv_copy_path_rec_from_kern(evt->param.lap_rcvd.alternate_path,
+ &resp->u.lap_resp.path);
break;
case IB_CM_APR_RECEIVED:
evt->param.apr_rcvd.ap_status = resp->u.apr_resp.status;