pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-bts/+/41851?usp=email )


Change subject: vty: document default value for 'paging queue-size'
......................................................................

vty: document default value for 'paging queue-size'

Change-Id: I34c1529c63544ccd472b53fc7370e742ae5e3a02
---
M include/osmo-bts/paging.h
M src/common/bts.c
M src/common/vty.c
3 files changed, 5 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/51/41851/1

diff --git a/include/osmo-bts/paging.h b/include/osmo-bts/paging.h
index d8efb34..5d26459 100644
--- a/include/osmo-bts/paging.h
+++ b/include/osmo-bts/paging.h
@@ -57,6 +57,8 @@
        } nln_pch;
 };

+#define NUM_PAGING_MAX_DEFAULT 200
+
 /* initialize paging code */
 struct paging_state *paging_init(struct gsm_bts *bts,
                                 unsigned int num_paging_max,
diff --git a/src/common/bts.c b/src/common/bts.c
index 73cb8a6..ea6b3d6 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -336,7 +336,7 @@
        bts->agch_queue.thresh_level = GSM_BTS_AGCH_QUEUE_THRESH_LEVEL_DEFAULT;

        /* configurable via VTY */
-       bts->paging_state = paging_init(bts, 200, 0);
+       bts->paging_state = paging_init(bts, NUM_PAGING_MAX_DEFAULT, 0);
        bts->rtp_jitter_adaptive = false;
        bts->rtp_port_range_start = 16384;
        bts->rtp_port_range_end = 17407;
diff --git a/src/common/vty.c b/src/common/vty.c
index ca7947b..f9d691a 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -56,6 +56,7 @@
 #include <osmo-bts/oml.h>
 #include <osmo-bts/signal.h>
 #include <osmo-bts/bts_model.h>
+#include <osmo-bts/paging.h>
 #include <osmo-bts/pcuif_proto.h>
 #include <osmo-bts/measurement.h>
 #include <osmo-bts/vty.h>
@@ -838,7 +839,7 @@
           cfg_bts_paging_queue_size_cmd,
           "paging queue-size <1-1024>",
           PAG_STR "Maximum length of BTS-internal paging queue\n"
-          "Maximum length of BTS-internal paging queue\n",
+          "Maximum length of BTS-internal paging queue (default " 
NUM_PAGING_MAX_DEFAULT ")\n",
           CMD_ATTR_IMMEDIATE)
 {
        struct gsm_bts *bts = vty->index;

--
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/41851?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I34c1529c63544ccd472b53fc7370e742ae5e3a02
Gerrit-Change-Number: 41851
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to