aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ms/MsTest.ok
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-04-18 19:02:55 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-04-20 20:40:52 +0200
commitac4d4a6d41f929419d21cac62f80a62d436d3e14 (patch)
treeae9f8f3cda4613f53696b0d6b5421680af662d6b /tests/ms/MsTest.ok
parentdf6684fe5088c9c471b62a48dc16206428e55019 (diff)
ms: Rewrite MS release lifecycle
This commit changes lots of stuff in the MS release lifecycle, but there's no really good way to split this into patches which make sense, since all the chaos is intensively entangled. Get rid of the ms_callback complex mess, it is not needed at all. Previous MS release was strange due to the existance of previous ms_callback.idle concept and MS storage: the MS signalled when it went idle (no TBFs attached) and waited for somebody outside to free it, while then arming itself the release timer to release itself if it was not released by whoever. The new lifecycle follows an easier (expected) approach: Whenever all TBFs become detached from the MS and it becomes idle (use_count becomes 0), then it frees its reserved resources (TFI, etc.) and either: * frees itself immediatelly under certain conditions (release timeout configured = 0 or MS garbage with TLLI=GSM_RESERVED_TMSI) * Arms release_timer and frees itself when it triggers. If during release_timer the MS is required again (for instance because a new TBF with TLLI/IMSI of the MS is observed), then a TBF is attached to the MS and it is considered to become active again, hence the release_timer is stopped. OS#6002 Change-Id: Ibe5115bc15bb4d76026918adc1be79469c2f4839
Diffstat (limited to 'tests/ms/MsTest.ok')
-rw-r--r--tests/ms/MsTest.ok8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/ms/MsTest.ok b/tests/ms/MsTest.ok
index 98e345c6..331bef0d 100644
--- a/tests/ms/MsTest.ok
+++ b/tests/ms/MsTest.ok
@@ -1,20 +1,12 @@
=== start test_ms_state ===
=== end test_ms_state ===
-=== start test_ms_callback ===
- ms_active() was called
- ms_idle() was called
-=== end test_ms_callback ===
=== start test_ms_replace_tbf ===
- ms_active() was called
- ms_idle() was called
=== end test_ms_replace_tbf ===
=== start test_ms_change_tlli ===
=== end test_ms_change_tlli ===
=== start test_ms_storage ===
=== end test_ms_storage ===
=== start test_ms_timeout ===
- ms_active() was called
- ms_idle() was called
=== end test_ms_timeout ===
=== start test_ms_cs_selection ===
=== end test_ms_cs_selection ===