Skip to content
Snippets Groups Projects
Commit a25818c8 authored by Eric Barton's avatar Eric Barton
Browse files

* changed /proc/sys/lnet/peers and debug peer output so that only routers

    show state as "up" or "down" - non-routers show "~rtr".
parent 87ff0325
No related merge requests found
......@@ -233,7 +233,7 @@ lnet_debug_peer(lnet_nid_t nid)
CDEBUG(D_WARNING, "%-24s %4d %5s %5d %5d %5d %5d %5d %ld\n",
libcfs_nid2str(lp->lp_nid), lp->lp_refcount,
lp->lp_alive ? "up" : "down",
!lnet_isrouter(lp) ? "~rtr" : (lp->lp_alive ? "up" : "down"),
lp->lp_ni->ni_peertxcredits,
lp->lp_rtrcredits, lp->lp_minrtrcredits,
lp->lp_txcredits, lp->lp_mintxcredits, lp->lp_txqnob);
......
......@@ -600,6 +600,7 @@ lnet_peer_seq_show (struct seq_file *s, void *iter)
int minrtrcr;
int rtrcr;
int alive;
int rtr;
int txqnob;
int nrefs;
......@@ -627,6 +628,7 @@ lnet_peer_seq_show (struct seq_file *s, void *iter)
mintxcr = lp->lp_mintxcredits;
rtrcr = lp->lp_rtrcredits;
minrtrcr = lp->lp_minrtrcredits;
rtr = lnet_isrouter(lp);
alive = lp->lp_alive;
txqnob = lp->lp_txqnob;
nrefs = lp->lp_refcount;
......@@ -634,7 +636,8 @@ lnet_peer_seq_show (struct seq_file *s, void *iter)
LNET_UNLOCK();
seq_printf(s, "%-24s %4d %5s %5d %5d %5d %5d %5d %d\n",
libcfs_nid2str(nid), nrefs, alive ? "up" : "down",
libcfs_nid2str(nid), nrefs,
!rtr ? "~rtr" : (lp->lp_alive ? "up" : "down"),
maxcr, rtrcr, minrtrcr, txcr, mintxcr, txqnob);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment