]> git.openfabrics.org - ~shefty/librdmacm.git/commit
Only allow a user to allocate a single QP off an rdma_cm_id
authorSean Hefty <sean.hefty@intel.com>
Sat, 5 Mar 2011 00:13:44 +0000 (16:13 -0800)
committerSean Hefty <sean.hefty@intel.com>
Sat, 5 Mar 2011 00:13:44 +0000 (16:13 -0800)
commit8d8c34d8134fe947c550f371eb6acda39b2103fc
treea76fc6a391eade00ca962cc2edebf54ce3a9d38f
parent1991739da17f0fd30a76702c0f1e7ab0414b0680
Only allow a user to allocate a single QP off an rdma_cm_id

Add a simple check to rdma_create_qp() to see if a QP has already been
associated with an rdma_cm_id.  Otherwise a user can allocate a
second QP with an ID, with the reference to the first QP replaced
by the second allocation.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
man/rdma_create_qp.3 [changed mode: 0644->0755]
src/cma.c