mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
IB/hfi1: Add opcode states to qp_stats
These fields allow for debugging send engine processing. Reviewed-by: Kaike Wan <kaike.wan@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
642aaab5a6
commit
280ad49a97
1 changed files with 3 additions and 1 deletions
|
@ -634,7 +634,7 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter)
|
||||||
if (qp->s_ack_queue)
|
if (qp->s_ack_queue)
|
||||||
e = &qp->s_ack_queue[qp->s_tail_ack_queue];
|
e = &qp->s_ack_queue[qp->s_tail_ack_queue];
|
||||||
seq_printf(s,
|
seq_printf(s,
|
||||||
"N %d %s QP %x R %u %s %u %u %u f=%x %u %u %u %u %u %u SPSN %x %x %x %x %x RPSN %x S(%u %u %u %u %u %u %u) R(%u %u %u) RQP %x LID %x SL %u MTU %u %u %u %u %u SDE %p,%u SC %p,%u SCQ %u %u PID %d E %x %x %x\n",
|
"N %d %s QP %x R %u %s %u %u %u f=%x %u %u %u %u %u %u SPSN %x %x %x %x %x RPSN %x S(%u %u %u %u %u %u %u) R(%u %u %u) RQP %x LID %x SL %u MTU %u %u %u %u %u SDE %p,%u SC %p,%u SCQ %u %u PID %d OS %x %x E %x %x %x\n",
|
||||||
iter->n,
|
iter->n,
|
||||||
qp_idle(qp) ? "I" : "B",
|
qp_idle(qp) ? "I" : "B",
|
||||||
qp->ibqp.qp_num,
|
qp->ibqp.qp_num,
|
||||||
|
@ -676,6 +676,8 @@ void qp_iter_print(struct seq_file *s, struct qp_iter *iter)
|
||||||
ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->head,
|
ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->head,
|
||||||
ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->tail,
|
ibcq_to_rvtcq(qp->ibqp.send_cq)->queue->tail,
|
||||||
qp->pid,
|
qp->pid,
|
||||||
|
qp->s_state,
|
||||||
|
qp->s_ack_state,
|
||||||
/* ack queue information */
|
/* ack queue information */
|
||||||
e ? e->opcode : 0,
|
e ? e->opcode : 0,
|
||||||
e ? e->psn : 0,
|
e ? e->psn : 0,
|
||||||
|
|
Loading…
Reference in a new issue