aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/iw_cm.h
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2016-10-26 12:36:40 -0700
committerDoug Ledford <dledford@redhat.com>2016-12-14 11:38:28 -0500
commit77a5db13153906a7e00740b10b2730e53385c5a8 (patch)
tree5969d8817379f75a2b036ca2075405f5536407a8 /include/rdma/iw_cm.h
parentnet/mlx5e: Add tc support for FWD rule with counter (diff)
downloadlinux-dev-77a5db13153906a7e00740b10b2730e53385c5a8.tar.xz
linux-dev-77a5db13153906a7e00740b10b2730e53385c5a8.zip
rdma_cm: add rdma_reject_msg() helper function
rdma_reject_msg() returns a pointer to a string message associated with the transport reject reason codes. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Steve Wise <swise@opengridcomputing.com> Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/iw_cm.h')
-rw-r--r--include/rdma/iw_cm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rdma/iw_cm.h b/include/rdma/iw_cm.h
index 6d0065c322b7..5cd7701db148 100644
--- a/include/rdma/iw_cm.h
+++ b/include/rdma/iw_cm.h
@@ -253,4 +253,10 @@ int iw_cm_disconnect(struct iw_cm_id *cm_id, int abrupt);
int iw_cm_init_qp_attr(struct iw_cm_id *cm_id, struct ib_qp_attr *qp_attr,
int *qp_attr_mask);
+/**
+ * iwcm_reject_msg - return a pointer to a reject message string.
+ * @reason: Value returned in the REJECT event status field.
+ */
+const char *__attribute_const__ iwcm_reject_msg(int reason);
+
#endif /* IW_CM_H */