kernel-ark/include/rdma
Haggai Eran 067b171b86 IB/cm: Share listening CM IDs
Enabling network namespaces for RDMA CM will allow processes on different
namespaces to listen on the same port. In order to leave namespace support
out of the CM layer, this requires that multiple RDMA CM IDs will be able
to share a single CM ID.

This patch adds infrastructure to retrieve an existing listening ib_cm_id,
based on its device and service ID, or create a new one if one does not
already exist. It also adds a reference count for such instances
(cm_id_private.listen_sharecount), and prevents cm_destroy_id from
destroying a CM if it is still shared. See the relevant discussion [1].

[1] Re: [PATCH v3 for-next 05/13] IB/cm: Reference count ib_cm_ids
    http://www.spinics.net/lists/netdev/msg328860.html

Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-08-30 15:48:22 -04:00
..
ib_addr.h IB/core cleanup: Add const to args - agent_send_response 2015-06-02 09:33:13 -04:00
ib_cache.h IB/core cleanup: Add const to args - agent_send_response 2015-06-02 09:33:13 -04:00
ib_cm.h IB/cm: Share listening CM IDs 2015-08-30 15:48:22 -04:00
ib_fmr_pool.h
ib_mad.h IB/core: Add core header changes needed for OPA 2015-08-28 22:54:50 -04:00
ib_marshall.h
ib_pack.h IB/core: Add core header changes needed for OPA 2015-08-28 22:54:50 -04:00
ib_pma.h
ib_sa.h IB/core: Ethernet L2 attributes in verbs/cm structures 2014-01-14 14:20:54 -08:00
ib_smi.h
ib_umem_odp.h IB/core: Implement support for MMU notifiers regarding on demand paging regions 2014-12-15 18:13:36 -08:00
ib_umem.h IB/core: Add support for on demand paging regions 2014-12-15 18:13:36 -08:00
ib_verbs.h IB/core: Find the network device matching connection parameters 2015-08-30 15:48:21 -04:00
ib.h
iw_cm.h RDMA/iw_cm: Export tos field to iwarp providers 2015-06-02 09:22:30 -04:00
iw_portmap.h RDMA/core: Enable the iWarp Port Mapper to provide the actual address of the connecting peer to its clients 2015-05-05 09:18:01 -04:00
opa_port_info.h IB/core: Add core header changes needed for OPA 2015-08-28 22:54:50 -04:00
opa_smi.h IB/core: Add core header changes needed for OPA 2015-08-28 22:54:50 -04:00
rdma_cm_ib.h
rdma_cm.h IB/core, cma: Nice log-friendly string helpers 2015-05-18 13:43:52 -04:00
rdma_netlink.h RDMA/core: Add support for iWARP Port Mapper user space service 2014-06-10 10:11:45 -07:00