From: Sean Hefty <[email protected]> If an application has allocated an SRQ on an rdma_cm_id, use it when creating a QP.
Signed-off-by: Sean Hefty <[email protected]> --- src/cma.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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); -- 1.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
