diff options
author | Moni Shoua <monis@mellanox.com> | 2017-01-05 15:16:35 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 22:20:37 +0100 |
commit | 498683c6a7eec5e6ca4f8371d92061618f0827bc (patch) | |
tree | d05f90316fabc53a8a5881f55e448a4b31a740fa /drivers/infiniband/core/cm.c | |
parent | IB/ipoib: Remove unnecessary returned value check (diff) | |
download | linux-498683c6a7eec5e6ca4f8371d92061618f0827bc.tar.xz linux-498683c6a7eec5e6ca4f8371d92061618f0827bc.zip |
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.c | 2 |
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: |