From fa232d0c22b6cc1980004a44975c0e58818f79fd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 1 Jul 2011 19:26:11 +0000 Subject: [PATCH] ib_srpt: Log QP timeout if debugging is enabled git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3648 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index a11cbb496..d8e44a4ef 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1151,6 +1151,9 @@ static int srpt_ch_qp_rts(struct srpt_rdma_ch *ch, struct ib_qp *qp) attr->max_rd_atomic = 4; + TRACE_DBG("Session %s: QP timeout = %d (about %d ms)", ch->sess_name, + attr->timeout, 1 << max(attr->timeout - 8, 0)); + ret = ib_modify_qp(qp, attr, attr_mask); out: