blob: fb7897d13de7a0b0ef254ceaa8e75cad9d7f92ca [file] [log] [blame]
Jacob Erlbeck62e96a32015-06-04 09:42:14 +02001/* pcu_vty_functions.cpp
2 *
3 * Copyright (C) 2015 by Sysmocom s.f.m.c. GmbH
4 * Author: Jacob Erlbeck <jerlbeck@sysmocom.de>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20/* OsmoBTS VTY interface */
21
22
23#include <stdint.h>
24#include <stdlib.h>
25#include "pcu_vty_functions.h"
Jacob Erlbeckf47f68a2015-06-04 10:23:24 +020026#include "bts.h"
27#include "gprs_ms_storage.h"
28#include "gprs_ms.h"
29#include "cxx_linuxlist.h"
Max1187a772018-01-26 13:31:42 +010030#include <llc.h>
31#include <pcu_l1_if.h>
32#include <rlc.h>
33#include <tbf.h>
Pau Espin Pedrol9d1cdb12019-09-25 17:47:02 +020034#include <tbf_ul.h>
Max6dc90b82018-02-19 17:17:28 +010035#include <pdch.h>
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020036
37extern "C" {
Maxd2d51ed2018-01-25 15:41:28 +010038#include <osmocom/vty/command.h>
39#include <osmocom/vty/logging.h>
40#include <osmocom/vty/misc.h>
Max1187a772018-01-26 13:31:42 +010041 #include <osmocom/core/linuxlist.h>
42 #include <osmocom/core/utils.h>
43 #include <osmocom/vty/vty.h>
Max136ebcc2019-03-05 14:59:03 +010044 #include "coding_scheme.h"
Jacob Erlbeck62e96a32015-06-04 09:42:14 +020045}
46
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +020047static void tbf_print_vty_info(struct vty *vty, struct gprs_rlcmac_tbf *tbf)
Jacob Erlbeckbf49f042015-12-28 19:06:09 +010048{
Jacob Erlbeck9f686702016-01-19 17:10:07 +010049 gprs_rlcmac_ul_tbf *ul_tbf = as_ul_tbf(tbf);
50 gprs_rlcmac_dl_tbf *dl_tbf = as_dl_tbf(tbf);
51
Minh-Quang Nguyen8d555632017-11-01 15:00:08 -040052 vty_out(vty, "TBF: TFI=%d TLLI=0x%08x (%s) TA=%u DIR=%s IMSI=%s%s", tbf->tfi(),
Pau Espin Pedrol5fc95772020-09-22 16:15:09 +020053 tbf->tlli(), tbf->is_tlli_valid() ? "valid" : "invalid",
54 tbf->ta(),
55 tbf->direction == GPRS_RLCMAC_UL_TBF ? "UL" : "DL",
56 tbf->imsi(), VTY_NEWLINE);
Pau Espin Pedrol14015122021-11-05 20:43:10 +010057 vty_out(vty, " created=%lu state=%s flags=%08x [CCCH:%u, PACCH:%u] 1st_TS=%d 1st_cTS=%d ctrl_TS=%d MS_CLASS=%d/%d%s",
58 tbf->created_ts(), tbf->state_name(),
59 tbf->state_fsm.state_flags,
Pau Espin Pedrol33e80072021-07-22 19:20:50 +020060 tbf->state_fsm.state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH),
61 tbf->state_fsm.state_flags & (1 << GPRS_RLCMAC_FLAG_PACCH),
Max5441e1f2018-01-30 17:49:53 +010062 tbf->first_ts,
Pau Espin Pedrol5fc95772020-09-22 16:15:09 +020063 tbf->first_common_ts, tbf->control_ts,
64 tbf->ms_class(),
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +010065 tbf->ms() ? ms_egprs_ms_class(tbf->ms()) : -1,
Pau Espin Pedrol5fc95772020-09-22 16:15:09 +020066 VTY_NEWLINE);
Jacob Erlbeckbf49f042015-12-28 19:06:09 +010067 vty_out(vty, " TS_alloc=");
68 for (int i = 0; i < 8; i++) {
Jacob Erlbeck81a04f72016-01-28 16:14:58 +010069 bool is_ctrl = tbf->is_control_ts(i);
Jacob Erlbeckbf49f042015-12-28 19:06:09 +010070 if (tbf->pdch[i])
Jacob Erlbeck81a04f72016-01-28 16:14:58 +010071 vty_out(vty, "%d%s ", i, is_ctrl ? "!" : "");
Jacob Erlbeckbf49f042015-12-28 19:06:09 +010072 }
Mrinal Mishrad453eaa2016-10-26 15:41:56 +053073 if (tbf->trx != NULL)
74 vty_out(vty, " TRX_ID=%d", tbf->trx->trx_no);
Max136ebcc2019-03-05 14:59:03 +010075 vty_out(vty, " CS=%s", mcs_name(tbf->current_cs()));
Jacob Erlbeck9f686702016-01-19 17:10:07 +010076
77 if (ul_tbf) {
Pau Espin Pedrolb3f23972020-10-23 21:00:23 +020078 gprs_rlc_ul_window *win = static_cast<gprs_rlc_ul_window *>(ul_tbf->window());
Maxa4f570f2017-12-15 11:21:57 +010079 vty_out(vty, " WS=%u V(Q)=%d V(R)=%d",
80 ul_tbf->window_size(), win->v_q(), win->v_r());
sivasankarida7250a2016-12-16 12:57:18 +053081 vty_out(vty, "%s", VTY_NEWLINE);
82 vty_out(vty, " TBF Statistics:%s", VTY_NEWLINE);
Pau Espin Pedrol43fc4a82021-11-05 13:36:49 +010083 if (ul_tbf->m_ul_gprs_ctrs)
sivasankarida7250a2016-12-16 12:57:18 +053084 vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_gprs_ctrs);
Pau Espin Pedrol43fc4a82021-11-05 13:36:49 +010085 if (ul_tbf->m_ul_egprs_ctrs)
sivasankarida7250a2016-12-16 12:57:18 +053086 vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_egprs_ctrs);
Jacob Erlbeck9f686702016-01-19 17:10:07 +010087 }
88 if (dl_tbf) {
Pau Espin Pedrolb3f23972020-10-23 21:00:23 +020089 gprs_rlc_dl_window *win = static_cast<gprs_rlc_dl_window *>(dl_tbf->window());
Maxa4f570f2017-12-15 11:21:57 +010090 vty_out(vty, " WS=%u V(A)=%d V(S)=%d nBSN=%d%s",
91 dl_tbf->window_size(), win->v_a(), win->v_s(), win->resend_needed(),
Jacob Erlbeck9f686702016-01-19 17:10:07 +010092 win->window_stalled() ? " STALLED" : "");
sivasankari53950732016-12-08 17:15:17 +053093 vty_out(vty, "%s", VTY_NEWLINE);
94 vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs);
Pau Espin Pedrol43fc4a82021-11-05 13:36:49 +010095 if (dl_tbf->m_dl_gprs_ctrs)
sivasankari53950732016-12-08 17:15:17 +053096 vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_gprs_ctrs);
Pau Espin Pedrol43fc4a82021-11-05 13:36:49 +010097 if (dl_tbf->m_dl_egprs_ctrs)
sivasankari53950732016-12-08 17:15:17 +053098 vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_egprs_ctrs);
Jacob Erlbeck9f686702016-01-19 17:10:07 +010099 }
100 vty_out(vty, "%s%s", VTY_NEWLINE, VTY_NEWLINE);
Jacob Erlbeckbf49f042015-12-28 19:06:09 +0100101}
102
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100103int pcu_vty_show_tbf_all(struct vty *vty, struct gprs_rlcmac_bts *bts, uint32_t flags)
Jacob Erlbecked2dbf62015-12-28 19:15:40 +0100104{
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100105 struct llist_item *iter;
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200106 const struct gprs_rlcmac_trx *trx;
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100107 struct gprs_rlcmac_tbf *tbf;
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200108 size_t trx_no;
Jacob Erlbecked2dbf62015-12-28 19:15:40 +0100109
110 vty_out(vty, "UL TBFs%s", VTY_NEWLINE);
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200111 for (trx_no = 0; trx_no < ARRAY_SIZE(bts->trx); trx_no++) {
112 trx = &bts->trx[trx_no];
113 llist_for_each_entry(iter, &trx->ul_tbfs, list) {
114 tbf = (struct gprs_rlcmac_tbf *)iter->entry;
Pau Espin Pedrol33e80072021-07-22 19:20:50 +0200115 if (tbf->state_fsm.state_flags & flags)
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200116 tbf_print_vty_info(vty, tbf);
117 }
Vadim Yanitskiycef2f842019-10-09 21:52:50 +0700118 }
Jacob Erlbecked2dbf62015-12-28 19:15:40 +0100119
120 vty_out(vty, "%sDL TBFs%s", VTY_NEWLINE, VTY_NEWLINE);
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200121 for (trx_no = 0; trx_no < ARRAY_SIZE(bts->trx); trx_no++) {
122 trx = &bts->trx[trx_no];
123 llist_for_each_entry(iter, &trx->dl_tbfs, list) {
124 tbf = (struct gprs_rlcmac_tbf *)iter->entry;
Pau Espin Pedrol33e80072021-07-22 19:20:50 +0200125 if (tbf->state_fsm.state_flags & flags)
Pau Espin Pedrol1a1557a2021-05-13 18:39:36 +0200126 tbf_print_vty_info(vty, tbf);
127 }
Vadim Yanitskiycef2f842019-10-09 21:52:50 +0700128 }
Jacob Erlbecked2dbf62015-12-28 19:15:40 +0100129
130 return CMD_SUCCESS;
131}
132
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200133static int show_ms(struct vty *vty, GprsMs *ms)
134{
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200135 unsigned i;
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100136 struct llist_item *i_tbf;
Jacob Erlbeck7c72aca2016-01-22 17:06:14 +0100137 uint8_t slots;
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200138
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100139 vty_out(vty, "MS TLLI=%08x, IMSI=%s%s", ms_tlli(ms), ms_imsi(ms), VTY_NEWLINE);
140 vty_out(vty, " Timing advance (TA): %d%s", ms_ta(ms), VTY_NEWLINE);
141 vty_out(vty, " Coding scheme uplink: %s%s", mcs_name(ms_current_cs_ul(ms)),
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200142 VTY_NEWLINE);
Pau Espin Pedrolfc464932021-01-25 12:05:32 +0100143 vty_out(vty, " Coding scheme downlink: %s%s", mcs_name(ms_current_cs_dl(ms, ms_mode(ms))),
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200144 VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100145 vty_out(vty, " Mode: %s%s", mode_name(ms_mode(ms)), VTY_NEWLINE);
146 vty_out(vty, " MS class: %d%s", ms_ms_class(ms), VTY_NEWLINE);
147 vty_out(vty, " EGPRS MS class: %d%s", ms_egprs_ms_class(ms), VTY_NEWLINE);
Jacob Erlbeck7c72aca2016-01-22 17:06:14 +0100148 vty_out(vty, " PACCH: ");
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100149 slots = ms_current_pacch_slots(ms);
Jacob Erlbeck7c72aca2016-01-22 17:06:14 +0100150 for (int i = 0; i < 8; i++)
151 if (slots & (1 << i))
152 vty_out(vty, "%d ", i);
153 vty_out(vty, "%s", VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100154 vty_out(vty, " LLC queue length: %zd%s", llc_queue_size(ms_llc_queue(ms)),
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200155 VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100156 vty_out(vty, " LLC queue octets: %zd%s", llc_queue_octets(ms_llc_queue(ms)),
Jacob Erlbeck159d4de2015-08-21 16:02:11 +0200157 VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100158 if (ms->l1_meas.have_rssi)
Jacob Erlbecke4bcb622015-06-08 11:26:38 +0200159 vty_out(vty, " RSSI: %d dBm%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100160 ms->l1_meas.rssi, VTY_NEWLINE);
161 if (ms->l1_meas.have_ber)
Jacob Erlbecke4bcb622015-06-08 11:26:38 +0200162 vty_out(vty, " Bit error rate: %d %%%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100163 ms->l1_meas.ber, VTY_NEWLINE);
164 if (ms->l1_meas.have_link_qual)
Jacob Erlbecke4bcb622015-06-08 11:26:38 +0200165 vty_out(vty, " Link quality: %d dB%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100166 ms->l1_meas.link_qual, VTY_NEWLINE);
167 if (ms->l1_meas.have_bto)
Jacob Erlbecke4bcb622015-06-08 11:26:38 +0200168 vty_out(vty, " Burst timing offset: %d/4 bit%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100169 ms->l1_meas.bto, VTY_NEWLINE);
170 if (ms->l1_meas.have_ms_rx_qual)
Jacob Erlbeck04a10862015-06-12 16:01:56 +0200171 vty_out(vty, " Downlink NACK rate: %d %%%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100172 ms_nack_rate_dl(ms), VTY_NEWLINE);
173 if (ms->l1_meas.have_ms_rx_qual)
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200174 vty_out(vty, " MS RX quality: %d %%%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100175 ms->l1_meas.ms_rx_qual, VTY_NEWLINE);
176 if (ms->l1_meas.have_ms_c_value)
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200177 vty_out(vty, " MS C value: %d dB%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100178 ms->l1_meas.ms_c_value, VTY_NEWLINE);
179 if (ms->l1_meas.have_ms_sign_var)
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200180 vty_out(vty, " MS SIGN variance: %d dB%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100181 ms->l1_meas.ms_sign_var, VTY_NEWLINE);
182 for (i = 0; i < ARRAY_SIZE(ms->l1_meas.ts); ++i) {
183 if (ms->l1_meas.ts[i].have_ms_i_level)
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200184 vty_out(vty, " MS I level (slot %d): %d dB%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100185 i, ms->l1_meas.ts[i].ms_i_level, VTY_NEWLINE);
Jacob Erlbeck51b11512015-06-11 16:54:50 +0200186 }
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100187 if (ms_ul_tbf(ms))
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200188 vty_out(vty, " Uplink TBF: TFI=%d, state=%s%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100189 ms_ul_tbf(ms)->tfi(),
190 ms_ul_tbf(ms)->state_name(),
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200191 VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100192 if (ms_dl_tbf(ms)) {
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200193 vty_out(vty, " Downlink TBF: TFI=%d, state=%s%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100194 ms_dl_tbf(ms)->tfi(),
195 ms_dl_tbf(ms)->state_name(),
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200196 VTY_NEWLINE);
sivasankari53950732016-12-08 17:15:17 +0530197 vty_out(vty, " Current DL Throughput: %d Kbps %s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100198 ms_dl_tbf(ms)->m_bw.dl_throughput,
sivasankari53950732016-12-08 17:15:17 +0530199 VTY_NEWLINE);
200 }
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200201
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100202 llist_for_each_entry(i_tbf, &ms->old_tbfs, list) {
203 struct gprs_rlcmac_tbf *tbf = (struct gprs_rlcmac_tbf *)i_tbf->entry;
Jacob Erlbeckc62216b2015-08-21 15:46:16 +0200204 vty_out(vty, " Old %-19s TFI=%d, state=%s%s",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100205 tbf_direction(tbf) == GPRS_RLCMAC_UL_TBF ?
Jacob Erlbeckc62216b2015-08-21 15:46:16 +0200206 "Uplink TBF:" : "Downlink TBF:",
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100207 tbf->tfi(),
208 tbf->state_name(),
Jacob Erlbeckc62216b2015-08-21 15:46:16 +0200209 VTY_NEWLINE);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100210 }
Pau Espin Pedrolbed48cc2021-01-11 17:32:18 +0100211 vty_out_rate_ctr_group(vty, " ", ms->ctrs);
Jacob Erlbeckc62216b2015-08-21 15:46:16 +0200212
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200213 return CMD_SUCCESS;
214}
215
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100216int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts)
Vadim Yanitskiyafbf1892019-10-09 20:26:47 +0700217{
Pau Espin Pedrol54faf022021-01-14 12:12:43 +0100218 struct llist_head *tmp;
Vadim Yanitskiyafbf1892019-10-09 20:26:47 +0700219
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100220 llist_for_each(tmp, bts_ms_store(bts)->ms_list()) {
Pau Espin Pedrol54faf022021-01-14 12:12:43 +0100221 GprsMs *ms_iter = llist_entry(tmp, typeof(*ms_iter), list);
Pau Espin Pedrolda971ee2020-12-16 15:59:45 +0100222 show_ms(vty, ms_iter);
Pau Espin Pedrol54faf022021-01-14 12:12:43 +0100223 }
Vadim Yanitskiyafbf1892019-10-09 20:26:47 +0700224
225 return CMD_SUCCESS;
226}
227
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100228int pcu_vty_show_ms_by_tlli(struct vty *vty, struct gprs_rlcmac_bts *bts,
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200229 uint32_t tlli)
230{
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100231 GprsMs *ms = bts_ms_store(bts)->get_ms(tlli);
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200232 if (!ms) {
233 vty_out(vty, "Unknown TLLI %08x.%s", tlli, VTY_NEWLINE);
234 return CMD_WARNING;
235 }
236
237 return show_ms(vty, ms);
238}
239
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100240int pcu_vty_show_ms_by_imsi(struct vty *vty, struct gprs_rlcmac_bts *bts,
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200241 const char *imsi)
242{
Pau Espin Pedrol2182e622021-01-14 16:48:38 +0100243 GprsMs *ms = bts_ms_store(bts)->get_ms(0, 0, imsi);
Jacob Erlbeck37e896d2015-06-05 16:33:33 +0200244 if (!ms) {
245 vty_out(vty, "Unknown IMSI '%s'.%s", imsi, VTY_NEWLINE);
246 return CMD_WARNING;
247 }
248
249 return show_ms(vty, ms);
250}
Pau Espin Pedrola1ac2f02020-09-22 17:01:31 +0200251
Pau Espin Pedrol0ece97d2021-01-18 12:53:54 +0100252int pcu_vty_show_bts_pdch(struct vty *vty, const struct gprs_rlcmac_bts *bts)
Pau Espin Pedrola1ac2f02020-09-22 17:01:31 +0200253{
254 unsigned int trx_nr, ts_nr;
255
Pau Espin Pedrold1049dc2021-01-18 17:14:14 +0100256 vty_out(vty, "BTS%" PRIu8 " (%s)%s", bts->nr, bts->active ? "active" : "disabled", VTY_NEWLINE);
Pau Espin Pedrol0ece97d2021-01-18 12:53:54 +0100257 for (trx_nr = 0; trx_nr < ARRAY_SIZE(bts->trx); trx_nr++) {
258 const struct gprs_rlcmac_trx *trx = &bts->trx[trx_nr];
Pau Espin Pedrola1ac2f02020-09-22 17:01:31 +0200259
260 for (ts_nr = 0; ts_nr < ARRAY_SIZE(trx->pdch); ts_nr++) {
261 if (trx->pdch[ts_nr].is_enabled())
262 break;
263 }
264 if (ts_nr == ARRAY_SIZE(trx->pdch))
265 continue; /* no pdch active, skip */
266
267 vty_out(vty, " TRX%u%s", trx->trx_no, VTY_NEWLINE);
268 for (ts_nr = 0; ts_nr < ARRAY_SIZE(trx->pdch); ts_nr++) {
269 const struct gprs_rlcmac_pdch *pdch = &trx->pdch[ts_nr];
270
271 vty_out(vty, " TS%u: PDCH %s, %u UL TBFs, %u DL TBFs%s", pdch->ts_no,
272 pdch->is_enabled() ? "enabled" : "disabled",
273 pdch->num_tbfs(GPRS_RLCMAC_DL_TBF),
274 pdch->num_tbfs(GPRS_RLCMAC_UL_TBF), VTY_NEWLINE);
275 }
276 }
277 return CMD_SUCCESS;
278}