summaryrefslogtreecommitdiff
path: root/drivers/infiniband/core/cm.c
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2017-01-05 17:16:35 +0300
committerDoug Ledford <dledford@redhat.com>2017-01-25 00:20:37 +0300
commit498683c6a7eec5e6ca4f8371d92061618f0827bc (patch)
treed05f90316fabc53a8a5881f55e448a4b31a740fa /drivers/infiniband/core/cm.c
parentf7534f45dcbc1a2ecb486b019db0443188e957d6 (diff)
downloadlinux-498683c6a7eec5e6ca4f8371d92061618f0827bc.tar.xz
IB/cma: Add debug messages to error flows
Print debug messages to the kernel log to add more information about RDMA_CM events that indicate an error. Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r--drivers/infiniband/core/cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index cf1edfa1cbac..6535f09dc575 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -3409,6 +3409,8 @@ static void cm_process_send_error(struct ib_mad_send_buf *msg,
if (msg != cm_id_priv->msg || state != cm_id_priv->id.state)
goto discard;
+ pr_debug_ratelimited("CM: failed sending MAD in state %d. (%s)\n",
+ state, ib_wc_status_msg(wc_status));
switch (state) {
case IB_CM_REQ_SENT:
case IB_CM_MRA_REQ_RCVD: