diff options
author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 13:09:28 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-21 02:35:41 -0400 |
commit | cf53936f229d81131fef475919f163ce566a205f (patch) | |
tree | 94031fdd3349e307cd8cc72b01764e85efc46165 /include | |
parent | ac53b264b2f39e89781e3b855008123dfdb44aea (diff) |
RDMA/cma: Export cma_get_service_id()
Allow the rdma_ucm to query the IB service ID formed or allocated by
the rdma_cm by exporting the cma_get_service_id() functionality.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/rdma/rdma_cm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h index 966f90ba8d8a..1ed2088dc9f5 100644 --- a/include/rdma/rdma_cm.h +++ b/include/rdma/rdma_cm.h | |||
@@ -373,4 +373,11 @@ int rdma_set_reuseaddr(struct rdma_cm_id *id, int reuse); | |||
373 | */ | 373 | */ |
374 | int rdma_set_afonly(struct rdma_cm_id *id, int afonly); | 374 | int rdma_set_afonly(struct rdma_cm_id *id, int afonly); |
375 | 375 | ||
376 | /** | ||
377 | * rdma_get_service_id - Return the IB service ID for a specified address. | ||
378 | * @id: Communication identifier associated with the address. | ||
379 | * @addr: Address for the service ID. | ||
380 | */ | ||
381 | __be64 rdma_get_service_id(struct rdma_cm_id *id, struct sockaddr *addr); | ||
382 | |||
376 | #endif /* RDMA_CM_H */ | 383 | #endif /* RDMA_CM_H */ |