IB/cma: Share ib_cm_ids between rdma_cm_ids
authorHaggai Eran <haggaie@mellanox.com>
Thu, 30 Jul 2015 14:50:25 +0000 (17:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Sun, 30 Aug 2015 19:48:24 +0000 (15:48 -0400)
commit51efe394bcab3a0c511634f7ae58bb88b1686983
tree2ee0543f3fac0fc0988cd66be26569bf43a4e5fc
parent0b3ca768fcb07338c99df5e3ccec99119435e321
IB/cma: Share ib_cm_ids between rdma_cm_ids

Use ib_cm_insert_listen to create listening IB CM IDs or share existing
ones if needed. When given a request on a specific CM ID, the code now
matches the request to the RDMA CM ID based on the request parameters, so
it no longer needs to rely on the ib_cm's private data matching
capabilities.

Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c