]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: only allocate qp in rdma_create_ep if qp_attr provided
authorSean Hefty <sean.hefty@intel.com>
Mon, 4 Oct 2010 23:35:25 +0000 (16:35 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 4 Oct 2010 23:35:38 +0000 (16:35 -0700)
commit5f5181f4d09550af291347574e28441fe5b35ac5
treea7099ab2288148ef4c8f40a958ac0eae3ad1357f
parentfb8c75f684eade649260ddf53a5be72c0f2e3573
librdmacm: only allocate qp in rdma_create_ep if qp_attr provided

The comments and documentation for rdma_create_ep indicate that
it will only allocate a QP if initial QP attributes are provided.
However, the code always attempts to create a QP off an associated
active rdma_cm_id endpoint.

By _not_ allocating the QP, this allows a user to first determine
what RDMA device a rdma_cm_id was associated with.  The user can
then create a QP that references an existing CQ, SRQ, or PD.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/cma.c