net: Add the RQ and WQ len to ipchaninfo
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 1 Apr 2016 19:30:10 +0000 (15:30 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 5 Apr 2016 19:42:18 +0000 (15:42 -0400)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/devip.c

index 48f67cd..39430a3 100644 (file)
@@ -625,9 +625,9 @@ static char *ipchaninfo(struct chan *ch, char *ret, size_t ret_l)
                case Qdata:
                        proto = f->p[PROTO(ch->qid)];
                        conv = proto->conv[CONV(ch->qid)];
-                       snprintf(ret, ret_l, "Qdata, %s proto %s, conv idx %d",
+                       snprintf(ret, ret_l, "Qdata, %s, proto %s, conv idx %d, rq len %d, wq len %d",
                                 SLIST_EMPTY(&conv->data_taps) ? "untapped" : "tapped",
-                                proto->name, conv->x);
+                                proto->name, conv->x, qlen(conv->rq), qlen(conv->wq));
                        break;
                case Qarp:
                        ret = "Qarp";