summaryrefslogtreecommitdiffstats
path: root/include/rdma/rdma_cm.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-05-18 13:40:28 +0300
committerDoug Ledford <dledford@redhat.com>2015-05-18 13:43:52 -0400
commit2b1b5b601230ae4356be4724ea7a058ed7203c63 (patch)
tree94b26ed3a0b45927c8a71955d0134f5edd3f3353 /include/rdma/rdma_cm.h
parente26081808edadfd257c6c9d81014e3b25e9a6118 (diff)
downloadlinux-2b1b5b601230ae4356be4724ea7a058ed7203c63.tar.bz2
IB/core, cma: Nice log-friendly string helpers
Some of us keep revisiting the code to decode enumerations that appear in out logs. Let's borrow the nice logging helpers that exists in xprtrdma and rds for CMA events, IB events and WC statuses. Reviewd-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/rdma_cm.h')
-rw-r--r--include/rdma/rdma_cm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/rdma/rdma_cm.h b/include/rdma/rdma_cm.h
index 1ed2088dc9f5..c92522c192d2 100644
--- a/include/rdma/rdma_cm.h
+++ b/include/rdma/rdma_cm.h
@@ -62,6 +62,8 @@ enum rdma_cm_event_type {
RDMA_CM_EVENT_TIMEWAIT_EXIT
};
+__attribute_const__ const char *rdma_event_msg(enum rdma_cm_event_type event);
+
enum rdma_port_space {
RDMA_PS_SDP = 0x0001,
RDMA_PS_IPOIB = 0x0002,