RDMA/ucm: Allow user to specify QP type when creating id
authorSean Hefty <sean.hefty@intel.com>
Tue, 14 Jun 2011 23:31:53 +0000 (16:31 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Oct 2011 16:40:36 +0000 (09:40 -0700)
commit638ef7a6c6a599b2e4c00ebf35d281721d2a42f6
tree13a1e34b0c4cccbffba11ed71cad28bbcfd03fda
parent2d2e94152928209de13dea0535242c0e457bdcbb
RDMA/ucm: Allow user to specify QP type when creating id

Allow the user to indicate the QP type separately from the port space
when allocating an rdma_cm_id.  With RDMA_PS_IB, there is no longer a
1:1 relationship between the QP type and port space, so we need to
switch on the QP type to select between UD and connected QPs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/ucma.c
include/rdma/rdma_user_cm.h