diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-21 19:32:16 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-04-26 13:29:03 +0200 |
commit | 4d3639144d681997ef5bfcdda70237a1e583d93f (patch) | |
tree | f95d8f13a6f20b9ea63b71c07b1e884cc7b1bea3 /src/tbf_ul.h | |
parent | d6c555ebd6df69e8ef712ea0a7f559ef9a61d4d2 (diff) |
Move resource allocation outside of tbf allocation
This patch finally decouples TBF allocation from resource allocation.
This will allow in the future reserving resources without having to
require a TBF object to exist.
Change-Id: I2856c946cb62d6e5372a1099b60e5f3456eb8fd4
Diffstat (limited to 'src/tbf_ul.h')
-rw-r--r-- | src/tbf_ul.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tbf_ul.h b/src/tbf_ul.h index 5ef84655..14884ab3 100644 --- a/src/tbf_ul.h +++ b/src/tbf_ul.h @@ -133,14 +133,13 @@ struct gprs_rlcmac_ul_tbf; #ifdef __cplusplus extern "C" { #endif -struct gprs_rlcmac_ul_tbf *ul_tbf_alloc(struct gprs_rlcmac_bts *bts, struct GprsMs *ms, int8_t use_trx, bool single_slot); -struct gprs_rlcmac_ul_tbf *ul_tbf_alloc_rejected(struct gprs_rlcmac_bts *bts, struct GprsMs *ms, - struct gprs_rlcmac_pdch *pdch); +struct gprs_rlcmac_ul_tbf *ul_tbf_alloc(struct gprs_rlcmac_bts *bts, struct GprsMs *ms); void update_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, int8_t ta_delta); void set_tbf_ta(struct gprs_rlcmac_ul_tbf *tbf, uint8_t ta); struct gprs_rlcmac_ul_tbf *tbf_as_ul_tbf(struct gprs_rlcmac_tbf *tbf); const struct gprs_rlcmac_ul_tbf *tbf_as_ul_tbf_const(const struct gprs_rlcmac_tbf *tbf); void tbf_usf_timeout(struct gprs_rlcmac_ul_tbf *tbf); +void ul_tbf_apply_allocated_resources(struct gprs_rlcmac_ul_tbf *ul_tbf, const struct alloc_resources_res *res); void ul_tbf_contention_resolution_start(struct gprs_rlcmac_ul_tbf *tbf); void ul_tbf_contention_resolution_success(struct gprs_rlcmac_ul_tbf *tbf); bool ul_tbf_contention_resolution_done(const struct gprs_rlcmac_ul_tbf *tbf); |