fixeria submitted this change.
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
proxy: make TRXDv2+ PDU batching VTY-configurable
Change-Id: I56c27db81d03bfbe58b4960e031a2f805df6e21b
Related: OS#6672
---
M proxy/src/vty.c
1 file changed, 30 insertions(+), 0 deletions(-)
diff --git a/proxy/src/vty.c b/proxy/src/vty.c
index c5fe6b7..83f41da 100644
--- a/proxy/src/vty.c
+++ b/proxy/src/vty.c
@@ -306,6 +306,32 @@
return CMD_SUCCESS;
}
+DEFUN(cfg_ep_trxd_pdu_batch,
+ cfg_ep_trxd_pdu_batch_cmd,
+ "trxd-pdu-batch",
+ "Batch all BURST.ind PDUs of a TDMA frame into one datagram "
+ "(TRXDv2 and higher, default)\n")
+{
+ struct proxy_trx *trx = vty->index;
+
+ osmo_trx_ep_set_pdu_batch(trx->ep, true);
+
+ return CMD_SUCCESS;
+}
+
+DEFUN(cfg_ep_no_trxd_pdu_batch,
+ cfg_ep_no_trxd_pdu_batch_cmd,
+ "no trxd-pdu-batch",
+ NO_STR "Send one datagram per BURST.ind PDU instead of batching a "
+ "TDMA frame's worth into one\n")
+{
+ struct proxy_trx *trx = vty->index;
+
+ osmo_trx_ep_set_pdu_batch(trx->ep, false);
+
+ return CMD_SUCCESS;
+}
+
DEFUN(cfg_ep_clock_socket,
cfg_ep_clock_socket_cmd,
"clock-socket",
@@ -361,6 +387,8 @@
vty_out(vty, " tx-power %d%s", trx->tx_power, VTY_NEWLINE);
if (trx->trxd_max_ver < OSMO_TRXD_PDU_VER_MAX)
vty_out(vty, " trxd-max-version %u%s", trx->trxd_max_ver, VTY_NEWLINE);
+ if (!osmo_trx_ep_get_pdu_batch(trx->ep))
+ vty_out(vty, " no trxd-pdu-batch%s", VTY_NEWLINE);
if (!osmo_trx_ep_get_clock_socket(trx->ep))
vty_out(vty, " no clock-socket%s", VTY_NEWLINE);
@@ -467,6 +495,8 @@
install_element(EP_NODE, &cfg_ep_num_chans_cmd);
install_element(EP_NODE, &cfg_ep_tx_power_cmd);
install_element(EP_NODE, &cfg_ep_trxd_max_version_cmd);
+ install_element(EP_NODE, &cfg_ep_trxd_pdu_batch_cmd);
+ install_element(EP_NODE, &cfg_ep_no_trxd_pdu_batch_cmd);
install_element(EP_NODE, &cfg_ep_clock_socket_cmd);
install_element(EP_NODE, &cfg_ep_no_clock_socket_cmd);
To view, visit change 43632. To unsubscribe, or for help writing mail filters, visit settings.