aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/qp.c
diff options
context:
space:
mode:
authorJubin John <jubin.john@intel.com>2016-02-14 12:46:19 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:38:15 -0500
commit77e7639fd782f5432c87ed7143b3e50be76c8500 (patch)
treeb10f02591e3665fc71a8f5195968f06210156566 /drivers/staging/rdma/hfi1/qp.c
parentstaging/rdma/hfi1: Determine actual operational VLs (diff)
downloadlinux-dev-77e7639fd782f5432c87ed7143b3e50be76c8500.tar.xz
linux-dev-77e7639fd782f5432c87ed7143b3e50be76c8500.zip
staging/rdma/hfi1: Add send context sw index
Print the qp's send context sw index in the qpstats Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Jubin John <jubin.john@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/qp.c')
-rw-r--r--drivers/staging/rdma/hfi1/qp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/qp.c b/drivers/staging/rdma/hfi1/qp.c
index 76d6a364da2d..cc00eca1780b 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\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\n",
iter->n,
qp_idle(qp) ? "I" : "B",
qp->ibqp.qp_num,
@@ -712,7 +712,8 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter)
qp->s_rnr_retry_cnt,
sde,
sde ? sde->this_idx : 0,
- send_context);
+ send_context,
+ send_context ? send_context->sw_index : 0);
}
void qp_comm_est(struct rvt_qp *qp)