From 0b1809eeba8042df48fa48dfc66072e3b96f4caf Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 5 Oct 2010 11:30:06 -0700 Subject: [PATCH] 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 -- 2.46.0