From 400ec02e8a0415a59eae9dcdae43de38247897a3 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Tue, 14 Jul 2015 13:31:48 +0200 Subject: alloc: Add 'dynamic' allocation algorithm The idea behind this meta algorithm is to automatically select one of the other algorithms based on the system state. Basically algorithm B will be selected if the PDCH usage is low to improve throughput and latency. Algorithm A will be selected to support more concurrent MS. This commit adds a first simple state-less version of this algorithm that always tries B first and only if that fails A is tried afterwards. The following VTY command is added to the 'pcu' node: - alloc-algorithm dynamic Ticket: #1934 Sponsored-by: On-Waves ehf --- src/gprs_rlcmac.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gprs_rlcmac.h') diff --git a/src/gprs_rlcmac.h b/src/gprs_rlcmac.h index 3fc95e69..3c1f1a05 100644 --- a/src/gprs_rlcmac.h +++ b/src/gprs_rlcmac.h @@ -104,6 +104,11 @@ int alloc_algorithm_b(struct gprs_rlcmac_bts *bts, struct GprsMs *ms, struct gprs_rlcmac_tbf *tbf, uint32_t cust, uint8_t single, int use_trx); + +int alloc_algorithm_dynamic(struct gprs_rlcmac_bts *bts, + struct GprsMs *ms, + struct gprs_rlcmac_tbf *tbf, uint32_t cust, uint8_t single, + int use_trx); #ifdef __cplusplus } #endif -- cgit v1.2.3