qp->qp.handle = resp->qp_handle;
qp->qp.qp_num = resp->qpn;
qp->qp.context = &context->context;
- qp->qp.qp_context = qp_init_attr_ex->qp_context;
+ qp->qp.qp_context = attr_ex->qp_context;
qp->qp.pd = attr_ex->pd;
- qp->qp.send_cq = qp_init_attr_ex->send_cq;
- qp->qp.recv_cq = qp_init_attr_ex->recv_cq;
- qp->qp.srq = qp_init_attr_ex->srq;
- qp->qp.qp_type = qp_init_attr_ex->qp_type;
+ qp->qp.send_cq = attr_ex->send_cq;
+ qp->qp.recv_cq = attr_ex->recv_cq;
+ qp->qp.srq = attr_ex->srq;
+ qp->qp.qp_type = attr_ex->qp_type;
qp->qp.state = IBV_QPS_RESET;
qp->qp.events_completed = 0;
pthread_mutex_init(&qp->qp.mutex, NULL);