aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma
diff options
context:
space:
mode:
authorVennila Megavannan <vennila.megavannan@intel.com>2016-02-14 12:46:28 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:38:16 -0500
commit0358a440c2e7401238372316565b654fd95e5142 (patch)
tree0742b50d5072f8fd3d013dd1e3f58cb3f71a84c5 /drivers/staging/rdma
parentstaging/rdma/hfi1: Add send context sw index (diff)
downloadlinux-dev-0358a440c2e7401238372316565b654fd95e5142.tar.xz
linux-dev-0358a440c2e7401238372316565b654fd95e5142.zip
staging/rdma/hfi1: add cq head and tail information to qpstats
This enables debugging issues related to cq event signalling mechanism Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Vennila Megavannan <vennila.megavannan@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma')
-rw-r--r--drivers/staging/rdma/hfi1/qp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/qp.c b/drivers/staging/rdma/hfi1/qp.c
index cc00eca1780b..df905791ccfc 100644
--- a/drivers/staging/rdma/hfi1/qp.c
+++ b/drivers/staging/rdma/hfi1/qp.c
@@ -681,7 +681,7 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter)
wqe = rvt_get_swqe_ptr(qp, qp->s_last);
send_context = qp_to_send_context(qp, priv->s_sc);
seq_printf(s,
- "N %d %s QP%x R %u %s %u %u %u f=%x %u %u %u %u %u %u PSN %x %x %x %x %x (%u %u %u %u %u %u %u) QP%x LID %x SL %u MTU %u %u %u %u SDE %p,%u SC %p,%u\n",
+ "N %d %s QP%x R %u %s %u %u %u f=%x %u %u %u %u %u %u PSN %x %x %x %x %x (%u %u %u %u %u %u %u) QP%x LID %x SL %u MTU %u %u %u %u SDE %p,%u SC %p,%u CQ %u %u\n",
iter->n,
qp_idle(qp) ? "I" : "B",
qp->ibqp.qp_num,
@@ -713,7 +713,9 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter)
sde,
sde ? sde->this_idx : 0,
send_context,
- send_context ? send_context->sw_index : 0);
+ send_context ? send_context->sw_index : 0,
+ ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->head,
+ ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->tail);
}
void qp_comm_est(struct rvt_qp *qp)