From cdee6ec4bf96661dade86e9fdd5ab0fa74b0b22e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 30 Jul 2015 17:01:58 +0000 Subject: [PATCH] ib_srpt: Clarify a log message (merge r6026 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6443 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 3dca5863c..bf74cb537 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1928,12 +1928,13 @@ static void srpt_process_send_completion(struct ib_cq *cq, srpt_send_context); } else if (opcode == SRPT_RDMA_READ_LAST || opcode == SRPT_RDMA_WRITE_LAST) { - PRINT_INFO("RDMA t %d for idx %u failed with status %d." - "%s", opcode, index, wc->status, + PRINT_INFO("RDMA t %d for idx %u failed with status %d.%s", + opcode, index, wc->status, + wc->status == IB_WC_RETRY_EXC_ERR ? + " If this has not been triggered by a cable pull, please consider to increase the subnet timeout parameter on the IB switch." : wc->status == IB_WC_WR_FLUSH_ERR ? - " If this has not been triggered by a cable" - " pull, please check the involved IB HCA's" - " and cables." : ""); + " If this has not been triggered by a cable pull, please check the involved IB HCA's and cables." : + ""); srpt_handle_rdma_err_comp(ch, ch->ioctx_ring[index], opcode, srpt_xmt_rsp_context); } else if (opcode == SRPT_RDMA_ZEROLENGTH_WRITE) {