]> git.openfabrics.org - ~shefty/rdma-win.git/commit
librdmacm: only allocate qp in rdma_create_ep if qp_attr provided
authorSean Hefty <sean.hefty@intel.com>
Tue, 5 Oct 2010 18:30:06 +0000 (11:30 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 5 Oct 2010 18:30:06 +0000 (11:30 -0700)
commit0b1809eeba8042df48fa48dfc66072e3b96f4caf
tree271a570ea67afa103368fd3623b66ef272f81a13
parentbfc5e1442631c70deb47f6c429aff6a64dcdfcb4
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
active rdma_cm_id endpoint.

By _not_ allocating the QP, a user can first determine
what RDMA device an rdma_cm_id was associated with (returned from
rdma_create_ep).  The user can then call rdma_create_qp to
allocate a QP referencing an existing CQ, SRQ, or PD.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>