From 0823e1e42a833be8030530fd26c46ed3c8b42fea Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 7 Sep 2012 12:13:09 +0200 Subject: BSSGP: print per-bvc flow control parameters on vty --- src/gb/gprs_bssgp_vty.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/gb/gprs_bssgp_vty.c') 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) -- cgit v1.2.3