dexter has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31441 )
Change subject: trau_pcu_ericsson: cosmetic: set hdr_good flag explictly to false
......................................................................
trau_pcu_ericsson: cosmetic: set hdr_good flag explictly to false
It is not necessary but we also set the data_good flags explicitly to
false so lets to the same with hdr_good
Change-Id: Ic710f7e63f4b7e16a3cbc9eb8bbf9ae1c7c5cb26
Related: OS#5198
---
M src/trau/trau_pcu_ericsson.c
1 file changed, 15 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/src/trau/trau_pcu_ericsson.c b/src/trau/trau_pcu_ericsson.c
index 0b0477b..2f2bf0e 100644
--- a/src/trau/trau_pcu_ericsson.c
+++ b/src/trau/trau_pcu_ericsson.c
@@ -1671,6 +1671,8 @@
if (trau_bits[98] == 0)
ind->u.egprs.data_good[1] = true;
} else {
+ ind->u.egprs.hdr_good = false;
+
/* A bad RLC/MAC header always means that the the data blocks
* cannot be valid. */
ind->u.egprs.data_good[0] = false;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31441
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Ic710f7e63f4b7e16a3cbc9eb8bbf9ae1c7c5cb26
Gerrit-Change-Number: 31441
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
dexter has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/31323 )
Change subject: e1_input: cleanup TS resources when timeslot type is changed
......................................................................
e1_input: cleanup TS resources when timeslot type is changed
There may be situations where we want to change the timeslot type by
calling a different e1inp_ts_config_xyz function at some later point. In
those cases we must ensure that no dynamically allocated resources
remain in the type dependend union of struct e1inp_ts.
Depends: libosmocore.git I0454ffe5809f21504c1e263a781c06596d452d4b
Related: OS#5198
Change-Id: Icf84816460b8ceba43601594bcf504306606f4ed
---
M src/e1_input.c
1 file changed, 78 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/src/e1_input.c b/src/e1_input.c
index be98138..e3ac67e 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -361,6 +361,56 @@
return 0;
}
+/* Depending on its typ a timeslot may hold resources which must be cleaned up
+ * or reset before the type of the timeslot type may be changed. */
+static int cleanup_e1inp_ts(struct e1inp_ts *e1i_ts)
+{
+ int rc;
+
+ switch (e1i_ts->type) {
+ case E1INP_TS_TYPE_SIGN:
+ /* The caller is responsible for removing all signalling links
+ * first. */
+ if (!llist_empty(&e1i_ts->sign.sign_links)) {
+ LOGPITS(e1i_ts, DLMI, LOGL_ERROR,
+ "timeslot still holds active signalling links -- cannot modify timeslot!\n");
+ return -EINVAL;
+ }
+ return 0;
+ case E1INP_TS_TYPE_TRAU:
+ /* Call the initialization functions once more. This will
+ * deactivate all subchannels so that the related callbacks
+ * are no longer called */
+ subchan_mux_init(&e1i_ts->trau.mux);
+ subch_demux_init(&e1i_ts->trau.demux);
+ return 0;
+ case E1INP_TS_TYPE_RAW:
+ msgb_queue_free(&e1i_ts->raw.tx_queue);
+ return 0;
+ case E1INP_TS_TYPE_HDLC:
+ msgb_queue_free(&e1i_ts->hdlc.tx_queue);
+ return 0;
+ case E1INP_TS_TYPE_I460:
+ /* The caller is responsible for removing all I.460 subchannels
+ * first. */
+ rc = osmo_i460_subchan_count(&e1i_ts->i460.i460_ts);
+ if (rc != 0) {
+ LOGPITS(e1i_ts, DLMI, LOGL_ERROR,
+ "timeslot still holds active I.460 subchannels -- cannot modify timeslot!\n");
+ return -EINVAL;
+ }
+ return 0;
+ case E1INP_TS_TYPE_NONE:
+ return 0;
+ default:
+ LOGPITS(e1i_ts, DLMI, LOGL_ERROR, "unsupported E1 TS type %u\n",
+ e1i_ts->type);
+ return -EINVAL;
+ }
+
+ return 0;
+}
+
/* Timeslot */
int e1inp_ts_config_trau(struct e1inp_ts *ts, struct e1inp_line *line,
int (*trau_rcv_cb)(struct subch_demux *dmx, int ch,
@@ -369,6 +419,8 @@
if (ts->type == E1INP_TS_TYPE_TRAU && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_TRAU;
ts->line = line;
@@ -384,6 +436,8 @@
if (ts->type == E1INP_TS_TYPE_I460 && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_I460;
ts->line = line;
osmo_i460_ts_init(&ts->i460.i460_ts);
@@ -403,6 +457,8 @@
if (ts->type == E1INP_TS_TYPE_SIGN && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_SIGN;
ts->line = line;
@@ -421,6 +477,8 @@
if (ts->type == E1INP_TS_TYPE_RAW && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_RAW;
ts->line = line;
ts->raw.recv_cb = raw_recv_cb;
@@ -436,6 +494,8 @@
if (ts->type == E1INP_TS_TYPE_HDLC && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_HDLC;
ts->line = line;
ts->hdlc.recv_cb = hdlc_recv_cb;
@@ -449,6 +509,8 @@
if (ts->type == E1INP_TS_TYPE_NONE && ts->line && line)
return 0;
+ cleanup_e1inp_ts(ts);
+
ts->type = E1INP_TS_TYPE_NONE;
ts->line = line;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/31323
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: Icf84816460b8ceba43601594bcf504306606f4ed
Gerrit-Change-Number: 31323
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439 )
Change subject: bsc: TC_ho_in_fail_mgw_mdcx_timeout: fixup
......................................................................
bsc: TC_ho_in_fail_mgw_mdcx_timeout: fixup
Fix that the test was torn down too early, before DLCX messages were
received from OsmoBSC. This caused a race condition that sometimes
failed the test with:
VirtMGW-MGCP-0(1996)@e5a096d6b4ff: Dynamic test case error: Sending data on the connection of port MGCP_CLIENT to 1999:MGCP failed. (Broken pipe)
Related: OS#5787
Fixes: 7a8594a8 ("bsc: TC_ho_in_fail_mgw_mdcx_timeout: new test")
Change-Id: If47fa3e0204ce841c79a67dd78a1c53d04e4a586
---
M bsc/BSC_Tests.ttcn
1 file changed, 26 insertions(+), 0 deletions(-)
Approvals:
osmith: Looks good to me, approved; Verified
Jenkins Builder: Verified
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index 9a2718a..b9182e3 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -6347,6 +6347,15 @@
if (g_pars.expect_ho_fail_lchan_est) {
BSSAP.receive(tr_BSSMAP_HandoverFailure);
setverdict(pass);
+
+ /* When we let MGCP MDCX run into a timeout, it's still in the
+ * queue and additionally after BSSAP HandoverFailure, two DLCX
+ * get sent. */
+ if (g_pars.ignore_mgw_mdcx) {
+ MGCP.receive(tr_MDCX);
+ MGCP.receive(tr_DLCX);
+ MGCP.receive(tr_DLCX);
+ }
return;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If47fa3e0204ce841c79a67dd78a1c53d04e4a586
Gerrit-Change-Number: 31439
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: fixeria.
osmith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439 )
Change subject: bsc: TC_ho_in_fail_mgw_mdcx_timeout: fixup
......................................................................
Patch Set 1:
(2 comments)
File bsc/BSC_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439/comment/2c632d48_7b00…
PS1, Line 6352: DLXC
> s/DLXC/DLCX/
Done
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439/comment/7c776fba_e38f…
PS1, Line 6355: MGCP.receive(tr_MDCX);
> Just to confirm: are you sure these MGCP messages always being sent in this particular order? If not […]
Yes I'm sure: first the MDCX that we ignored to let it go into the timeout. Then once it reached the timeout, two DLCX.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If47fa3e0204ce841c79a67dd78a1c53d04e4a586
Gerrit-Change-Number: 31439
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 22 Feb 2023 10:14:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: osmith.
Hello Jenkins Builder, fixeria, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439
to look at the new patch set (#2).
Change subject: bsc: TC_ho_in_fail_mgw_mdcx_timeout: fixup
......................................................................
bsc: TC_ho_in_fail_mgw_mdcx_timeout: fixup
Fix that the test was torn down too early, before DLCX messages were
received from OsmoBSC. This caused a race condition that sometimes
failed the test with:
VirtMGW-MGCP-0(1996)@e5a096d6b4ff: Dynamic test case error: Sending data on the connection of port MGCP_CLIENT to 1999:MGCP failed. (Broken pipe)
Related: OS#5787
Fixes: 7a8594a8 ("bsc: TC_ho_in_fail_mgw_mdcx_timeout: new test")
Change-Id: If47fa3e0204ce841c79a67dd78a1c53d04e4a586
---
M bsc/BSC_Tests.ttcn
1 file changed, 26 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/39/31439/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/31439
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If47fa3e0204ce841c79a67dd78a1c53d04e4a586
Gerrit-Change-Number: 31439
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Attention is currently required from: laforge.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/31452 )
Change subject: New unit test for XOR-2G authentication
......................................................................
Patch Set 3: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/31452
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I7014258751624ff18c51912b6348c3cd876bb23f
Gerrit-Change-Number: 31452
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 22 Feb 2023 09:18:40 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment