aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-04-21 12:56:48 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-05-06 15:20:35 +0200
commit87d7341fbe290582ac4a03f67349496e5306eb04 (patch)
tree453e943c92b5e0758481e856fe2da0b4d1d0357a /src/bts.h
parent29d91e92715945f53aff4530602add765d63946e (diff)
bssgp: Make BVC bucket size / leak rate configurable
Currently the FLOW-CONTROL_BVC message contains fixed values: The tag is 1, the BVC bucket size is 6MB, the BVC bucket leak rate is 820kbit/s, the MS bucket size is 50kB, and the MS leak rate is 50kbit/s. This commit makes the BVC parameters configurable and adds the following VTY commands: - flow-control force-bvc-bucket-size <1-6553500> - no flow-control force-bvc-bucket-size - flow-control force-bvc-leak-rate <1-6553500> - no flow-control force-bvc-leak-rate - flow-control force-ms-bucket-size <1-6553500> - no flow-control force-ms-bucket-size - flow-control force-ms-leak-rate <1-6553500> - no flow-control force-ms-leak-rate The 'no' variants restore the default behaviour. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/bts.h')
-rw-r--r--src/bts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bts.h b/src/bts.h
index 4b7f7e86..ebb7cbf2 100644
--- a/src/bts.h
+++ b/src/bts.h
@@ -111,6 +111,10 @@ struct gprs_rlcmac_trx {
struct gprs_rlcmac_bts {
uint8_t bsic;
uint8_t fc_interval;
+ uint32_t fc_bvc_bucket_size;
+ uint32_t fc_bvc_leak_rate;
+ uint32_t fc_ms_bucket_size;
+ uint32_t fc_ms_leak_rate;
uint8_t cs1;
uint8_t cs2;
uint8_t cs3;