Message ID | 1404281479-6755-3-git-send-email-sean.hefty@intel.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/src/cma.c b/src/cma.c index 1a88e5c..192d9ed 100644 --- a/src/cma.c +++ b/src/cma.c @@ -1303,6 +1303,8 @@ int rdma_create_qp(struct rdma_cm_id *id, struct ibv_pd *pd, qp_init_attr->send_cq = id->send_cq; if (!qp_init_attr->recv_cq) qp_init_attr->recv_cq = id->recv_cq; + if (id->srq && !qp_init_attr->srq) + qp_init_attr->srq = id->srq; qp = ibv_create_qp(pd, qp_init_attr); if (!qp) { ret = ERR(ENOMEM);