summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-09-07 12:13:09 +0200
committerHarald Welte <laforge@gnumonks.org>2012-09-07 12:13:09 +0200
commit0823e1e42a833be8030530fd26c46ed3c8b42fea (patch)
tree56c1d8817ad10282c9ec3bca8a30ba0aeb7b2d53
parentd8b476988d38f3ef2267594a46d0e4a9fc6eb6a1 (diff)
BSSGP: print per-bvc flow control parameters on vty
-rw-r--r--src/gb/gprs_bssgp_vty.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gb/gprs_bssgp_vty.c b/src/gb/gprs_bssgp_vty.c
index aa1f1065..d8e1d32f 100644
--- a/src/gb/gprs_bssgp_vty.c
+++ b/src/gb/gprs_bssgp_vty.c
@@ -88,8 +88,19 @@ static void dump_bvc(struct vty *vty, struct bssgp_bvc_ctx *bvc, int stats)
bvc->ra_id.mnc, bvc->ra_id.lac, bvc->ra_id.rac, bvc->cell_id,
bvc->state & BVC_S_BLOCKED ? "BLOCKED" : "UNBLOCKED",
VTY_NEWLINE);
- if (stats)
+
+ if (stats) {
+ struct bssgp_flow_control *fc = bvc->fc;
+
vty_out_rate_ctr_group(vty, " ", bvc->ctrg);
+
+ if (fc)
+ vty_out(vty, "FC-BVC(bucket_max: %uoct, leak_rate: "
+ "%uoct/s, cur_tokens: %uoct, max_q_d: %u, "
+ "cur_q_d: %u)\n", fc->bucket_size_max,
+ fc->bucket_leak_rate, fc->bucket_counter,
+ fc->max_queue_depth, fc->queue_depth);
+ }
}
static void dump_bssgp(struct vty *vty, int stats)