Attention is currently required from: pespin.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-pcu/+/28077
to look at the new patch set (#2).
Change subject: TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
......................................................................
TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
The timeout is set to a high value to avoid freeing the MS during main
loop iteration. Let's set it back to 0 to have a common free path in
test infrastructure.
Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
---
M tests/tbf/TbfTest.cpp
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/77/28077/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28077
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
Gerrit-Change-Number: 28077
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset
pespin has uploaded a new patch set (#3). ( https://gerrit.osmocom.org/c/osmo-pcu/+/28078 )
Change subject: gprs_ms_stoage: Release all MS in ms_storage cleanup()
......................................................................
gprs_ms_stoage: Release all MS in ms_storage cleanup()
This makes sure all MS and TBF objects under a bts are freed when its
underlaying storage is freed (cleanup() is called).
Related: OS#5555
Change-Id: Idf3ad8b70c97313dec38a49d48cf36d6c9b404c7
---
M src/gprs_ms_storage.cpp
M tests/tbf/TbfTest.err
2 files changed, 139 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/78/28078/3
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28078
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Idf3ad8b70c97313dec38a49d48cf36d6c9b404c7
Gerrit-Change-Number: 28078
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-MessageType: newpatchset
pespin has uploaded a new patch set (#2). ( https://gerrit.osmocom.org/c/osmo-pcu/+/28078 )
Change subject: gprs_ms_stoage: Release all MS in ms_storage cleanup()
......................................................................
gprs_ms_stoage: Release all MS in ms_storage cleanup()
This makes sure all MS and TBF objects under a bts are freed when its
underlaying storage is freed (cleanup() is called).
Change-Id: Idf3ad8b70c97313dec38a49d48cf36d6c9b404c7
---
M src/gprs_ms_storage.cpp
M tests/tbf/TbfTest.err
2 files changed, 139 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/78/28078/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28078
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Idf3ad8b70c97313dec38a49d48cf36d6c9b404c7
Gerrit-Change-Number: 28078
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-MessageType: newpatchset
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/28077 )
Change subject: TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
......................................................................
TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
The timeout is set to a high value to avoid freeing the MS during main
loop iteration. Let's set it back to 0 to have a common free path in
test infrastructure.
Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
---
M tests/tbf/TbfTest.cpp
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/77/28077/1
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 585496a..eb85f60 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -622,6 +622,8 @@
fprintf(stderr, "=== end %s ===\n", __func__);
+ /* Restore MS release timeout to 0 to make sure it is freed immediatelly: */
+ ms_set_timeout(ms, 0);
TALLOC_FREE(the_pcu);
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28077
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
Gerrit-Change-Number: 28077
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/28075 )
Change subject: gprs_pcu: Explicitly free all bts objects in list before freeing pcu
......................................................................
gprs_pcu: Explicitly free all bts objects in list before freeing pcu
This is mostly important to unit tests, where the gprs_pcu object is
recreated several times (it is not recreated in normal operation).
The BTS objects are already being freed through talloc dependency tree.
However, since they may trigger counter updates, access to the pcu list,
etc, let's better do it explicitly before erasing gprs_pcu object
fields.
Related: OS#5555
Change-Id: If2a8360e214d993a8a89993532ff1099b30bdbb1
---
M src/gprs_pcu.c
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/75/28075/1
diff --git a/src/gprs_pcu.c b/src/gprs_pcu.c
index e8dba06..ecb7f29 100644
--- a/src/gprs_pcu.c
+++ b/src/gprs_pcu.c
@@ -61,6 +61,10 @@
static int gprs_pcu_talloc_destructor(struct gprs_pcu *pcu)
{
+ struct gprs_rlcmac_bts *bts;
+ while ((bts = llist_first_entry_or_null(&pcu->bts_list, struct gprs_rlcmac_bts, list)))
+ talloc_free(bts);
+
if (osmo_timer_pending(&pcu->update_stats_timer))
osmo_timer_del(&pcu->update_stats_timer);
neigh_cache_free(pcu->neigh_cache);
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/28075
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: If2a8360e214d993a8a89993532ff1099b30bdbb1
Gerrit-Change-Number: 28075
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange