diff options
author | Haggai Eran <haggaie@mellanox.com> | 2015-07-30 17:50:18 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 15:48:22 -0400 |
commit | 067b171b8679f99e170feae2e1d2eae319736420 (patch) | |
tree | e5eadaddc00308d38bd2ed5ba5b92afa24a0f34c /fs | |
parent | 15865e7dab62a58407f1b7decdafd89dd0a8b063 (diff) | |
download | blackbird-op-linux-067b171b8679f99e170feae2e1d2eae319736420.tar.gz blackbird-op-linux-067b171b8679f99e170feae2e1d2eae319736420.zip |
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions