]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
RDMA/cxgb4: Debugfs dump_qp() updates
authorSteve Wise <swise@opengridcomputing.com>
Fri, 11 Mar 2011 22:29:50 +0000 (22:29 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 Mar 2011 19:09:14 +0000 (12:09 -0700)
- Show whether the SQ is in onchip memory or not.
- Dump both SQ and RQ QIDs.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/device.c

index fadb326e41e024792166b5c83bdac80d2eeeb36d..e29172c2afcbe963da9c581f3fdc60798d3fabf4 100644 (file)
@@ -87,17 +87,22 @@ static int dump_qp(int id, void *p, void *data)
                return 1;
 
        if (qp->ep)
-               cc = snprintf(qpd->buf + qpd->pos, space, "qp id %u state %u "
+               cc = snprintf(qpd->buf + qpd->pos, space,
+                            "qp sq id %u rq id %u state %u onchip %u "
                             "ep tid %u state %u %pI4:%u->%pI4:%u\n",
-                            qp->wq.sq.qid, (int)qp->attr.state,
+                            qp->wq.sq.qid, qp->wq.rq.qid, (int)qp->attr.state,
+                            qp->wq.sq.flags & T4_SQ_ONCHIP,
                             qp->ep->hwtid, (int)qp->ep->com.state,
                             &qp->ep->com.local_addr.sin_addr.s_addr,
                             ntohs(qp->ep->com.local_addr.sin_port),
                             &qp->ep->com.remote_addr.sin_addr.s_addr,
                             ntohs(qp->ep->com.remote_addr.sin_port));
        else
-               cc = snprintf(qpd->buf + qpd->pos, space, "qp id %u state %u\n",
-                             qp->wq.sq.qid, (int)qp->attr.state);
+               cc = snprintf(qpd->buf + qpd->pos, space,
+                            "qp sq id %u rq id %u state %u onchip %u\n",
+                             qp->wq.sq.qid, qp->wq.rq.qid,
+                             (int)qp->attr.state,
+                             qp->wq.sq.flags & T4_SQ_ONCHIP);
        if (cc < space)
                qpd->pos += cc;
        return 0;