diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-12 19:22:44 +0100 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2022-12-16 11:05:46 +0000 |
commit | 345d9ad1b3895e6ca28e978c933df37a28106132 (patch) | |
tree | 69c151837ffea7b4c0a006fb5435f066bfdbeb51 /src/gprs_ms.h | |
parent | 44347efacd83049ee7cb6ba7e2fcddfe68173280 (diff) |
Move first_common_ts from gprs_rlcmac_tbf to GprsMs
The field contains a common value between the 2 active TBFs of the MS,
so it makes no sense to have them duplicated on each TBF. It can be
sanely stored in the MS object.
Change-Id: I8df01a99ccbfaf7a442ade5000ee282bd638fbba
Diffstat (limited to 'src/gprs_ms.h')
-rw-r--r-- | src/gprs_ms.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gprs_ms.h b/src/gprs_ms.h index 4ff261c3..716ad74e 100644 --- a/src/gprs_ms.h +++ b/src/gprs_ms.h @@ -64,6 +64,8 @@ struct GprsMs { struct gprs_rlcmac_ul_tbf *ul_tbf; struct gprs_rlcmac_dl_tbf *dl_tbf; struct llist_head old_tbfs; /* list of gprs_rlcmac_tbf */ + /* First common timeslot number used both in UL and DL, 0..7 or TBF_TS_UNSET (-1): */ + int8_t first_common_ts; uint32_t tlli; uint32_t new_ul_tlli; @@ -101,7 +103,8 @@ struct GprsMs { struct GprsMs *ms_alloc(struct gprs_rlcmac_bts *bts, uint32_t tlli); -int ms_first_common_ts(const struct GprsMs *ms); +int8_t ms_first_common_ts(const struct GprsMs *ms); +void ms_set_first_common_ts(struct GprsMs *ms, uint8_t first_common_ts); void ms_set_reserved_slots(struct GprsMs *ms, struct gprs_rlcmac_trx *trx, uint8_t ul_slots, uint8_t dl_slots); struct GprsMs *ms_ref(struct GprsMs *ms); |