summaryrefslogtreecommitdiffstats
path: root/include/rdma/rdma_cm.h
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2018-05-10 16:31:36 +0200
committerDoug Ledford <dledford@redhat.com>2018-05-22 20:32:30 +0200
commitfbdb0a9181cb4c489a857f6bf71648276c85969c (patch)
treeaa2b0dd64c9f4c769560fb9aa33d21659c5cff4e /include/rdma/rdma_cm.h
parentiw_cxgb4: always set iw_cm_id.provider_data (diff)
downloadlinux-fbdb0a9181cb4c489a857f6bf71648276c85969c.tar.xz
linux-fbdb0a9181cb4c489a857f6bf71648276c85969c.zip
RDMA/CMA: add rdma_iw_cm_id() and rdma_res_to_id() helpers
Add a helper function for iwarp drivers to be able to map an rdma_cm_id to an iw_cm_id. This is useful for dumping driver specific NLDEV/RESTRACK connection state. Add a helper to return the rdma_cm_id pointer from the rdma_restack pointer. This is needed for rdma drivers to map a res entry back to the public rdma_cm_id struct. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_cm.h')
-rw-r--r--include/rdma/rdma_cm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
index 690934733ba7..c5c1435c129a 100644
--- a/include/rdma/rdma_cm.h
+++ b/include/rdma/rdma_cm.h
@@ -420,4 +420,7 @@ const void *rdma_consumer_reject_data(struct rdma_cm_id *id,
void rdma_read_gids(struct rdma_cm_id *cm_id, union ib_gid *sgid,
union ib_gid *dgid);
+struct iw_cm_id *rdma_iw_cm_id(struct rdma_cm_id *cm_id);
+struct rdma_cm_id *rdma_res_to_id(struct rdma_restrack_entry *res);
+
#endif /* RDMA_CM_H */