]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/CMA: add rdma_iw_cm_id() and rdma_res_to_id() helpers
authorSteve Wise <swise@opengridcomputing.com>
Thu, 10 May 2018 14:31:36 +0000 (07:31 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 May 2018 18:32:30 +0000 (14:32 -0400)
commitfbdb0a9181cb4c489a857f6bf71648276c85969c
treeaa2b0dd64c9f4c769560fb9aa33d21659c5cff4e
parentb06f2efd3bbe522ee0e118c3f29497c857d97f8b
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>
drivers/infiniband/core/cma.c
include/rdma/rdma_cm.h