aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac_ts_alloc.cpp
AgeCommit message (Collapse)AuthorFilesLines
2013-10-30tbf: Make tfi private and update the codeHolger Hans Peter Freyther1-4/+4
All logging code that used tbf->tfi is now using tbf_name to print the the TBF. External code is now using tfi() which is inlined and should result in the same code being generated as before (+debug code that can be stripped).
2013-10-30tbf: Remove the trx_no field from the tbf, go through the trx objectHolger Hans Peter Freyther1-2/+2
2013-10-30alloc: Remove the ts parameter from the internal interfaceHolger Hans Peter Freyther1-13/+11
2013-10-30bts/tbf: Move the lists into the BTS and do the look-up from the BTSHolger Hans Peter Freyther1-0/+1
The list belongs to the BTS. This makes cleaning this up more easy and establishes a hierachy of resources that start from the BTS. The debug_diagram code is now broken.
2013-10-30pdch: Move enable/disable into the PDCH codeHolger Hans Peter Freyther1-4/+4
When a PDCH is disabled all resources should be freed. This is currently not possible as the PDCH does not know where it belongs to. On top of that the list (and other resources) should be properly initialized on construction so that disable() is idempotent and does not check if it was disabled. During the re-factoring I noticed that during a sysmobts re-start some resources are not freed. I left a warning in the code to resolve this issue later.
2013-10-30alloc: Move usf into the scope it is actually usedHolger Hans Peter Freyther1-1/+2
2013-10-30alloc: Factor out the routine to find an enabled PDCHHolger Hans Peter Freyther1-9/+19
2013-10-30alloc: Remove the unimplemented/unfinished time constraint codeHolger Hans Peter Freyther1-47/+11
The algorithm is already complex enough. No reason to further introduce the complexity with the branches it has.
2013-10-30alloc: Remove code duplication for downlink assignmentHolger Hans Peter Freyther1-6/+12
There was no difference but there is no point in poking in the internals of the tbf, pdch and trx from various places. Information hiding has a real purpose, e.g. compare with reading "the mythical man month".
2013-10-30alloc: Introduce a backpointer from the tbf to the trx and simplify codeHolger Hans Peter Freyther1-12/+12
Kill all the level of indirections where one needs to have the BTS the TBF to find the TRX.
2013-10-30alloc: Call it trx_no and not trx as it is not trx objectHolger Hans Peter Freyther1-11/+11
2013-10-30alloc: Move the two timeslot alloc algorithms to a dedicated fileHolger Hans Peter Freyther1-0/+590