If the user passed initial QP attributes into rdma_create_ep, allocate a QP for the user as part of rdma_get_request.
Signed-off-by: Sean Hefty <sean.he...@intel.com> --- src/cma.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/cma.c b/src/cma.c index c59f47b..1cc4f1f 100644 --- a/src/cma.c +++ b/src/cma.c @@ -1287,6 +1287,12 @@ int rdma_get_request(struct rdma_cm_id *listen, struct rdma_cm_id **id) goto err; } + if (id_priv->qp_init_attr) { + ret = rdma_create_qp(event->id, id_priv->pd, id_priv->qp_init_attr); + if (ret) + goto err; + } + *id = event->id; (*id)->event = event; return 0; -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html