Attention is currently required from: pespin.
fixeria has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-pcu/+/39698?usp=email )
Change subject: tests/alloc: alloc_tbfs(): fix always true condition
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
> Looks like something needs fixing in this patch.
Would you like to take a look? I saw a warning while compiling with clang, saying that the assert condition is always true because `uint8_t` cannot be `-1`:
```
// note that trx_no here is implicitly casted to an int here
OSMO_ASSERT(trx_no != -1 || bts_all_pdch_allocated(bts));
```
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/39698?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: Ia345938512a2f4f92523596beb19d7c127a8a601
Gerrit-Change-Number: 39698
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 05 Mar 2025 18:36:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Attention is currently required from: daniel, lynxis lazus.
pespin has posted comments on this change by daniel. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39703?usp=email )
Change subject: Use osmo_select_main_ctx because vlr needs it
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/39703?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I4b26b73af706ce790181085880c6866e7f7e8c65
Gerrit-Change-Number: 39703
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Wed, 05 Mar 2025 18:19:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: daniel, lynxis lazus.
pespin has posted comments on this change by daniel. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39704?usp=email )
Change subject: sgsn_libgtp: Update struct pdp_t with RAT type when receiving an SGSN ctx
......................................................................
Patch Set 1:
(1 comment)
File src/sgsn/sgsn_libgtp.c:
https://gerrit.osmocom.org/c/osmo-sgsn/+/39704/comment/1fe73a88_2ef26a8e?us… :
PS1, Line 231: lib_pdp->rattype.v[0] = 2;
a comment regarding what 1 and 2 mean here would be welcome, or even using some enum or define...
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/39704?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I998ba8cbd586bc19894e157bfa281963bf27de6e
Gerrit-Change-Number: 39704
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Wed, 05 Mar 2025 18:19:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/39704?usp=email )
Change subject: sgsn_libgtp: Update struct pdp_t with RAT type when receiving an SGSN ctx
......................................................................
sgsn_libgtp: Update struct pdp_t with RAT type when receiving an SGSN ctx
Change-Id: I998ba8cbd586bc19894e157bfa281963bf27de6e
---
M src/sgsn/sgsn_libgtp.c
1 file changed, 8 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/04/39704/1
diff --git a/src/sgsn/sgsn_libgtp.c b/src/sgsn/sgsn_libgtp.c
index 182e898..fb52cac 100644
--- a/src/sgsn/sgsn_libgtp.c
+++ b/src/sgsn/sgsn_libgtp.c
@@ -222,7 +222,14 @@
memcpy(lib_pdp->gsnlu.v, &sgsn->cfg.gtp_listenaddr.sin_addr,
sizeof(sgsn->cfg.gtp_listenaddr.sin_addr));
-
+ /* Encode RAT Type according to TS 29.060 7.7.50
+ Update pdp_t with ran type of mm ctx */
+ lib_pdp->rattype.l = 1;
+ if (pctx->mm->ran_type == MM_CTX_T_UTRAN_Iu)
+ lib_pdp->rattype.v[0] = 1;
+ else
+ lib_pdp->rattype.v[0] = 2;
+ lib_pdp->rattype_given = 1;
pctx->state = PDP_STATE_NEED_UPDATE_GSN;
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/39704?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I998ba8cbd586bc19894e157bfa281963bf27de6e
Gerrit-Change-Number: 39704
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann(a)sysmocom.de>
pespin has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/39702?usp=email )
Change subject: xua_asp_fsm: Avoid sending NOTIFY in ASP role
......................................................................
xua_asp_fsm: Avoid sending NOTIFY in ASP role
Fixes: f2e324e2f82efc93fd2a1124fa216d680659ed40
Change-Id: I48848a69cabbd1c7279344dc8b2b7e2927894d26
---
M src/xua_asp_fsm.c
1 file changed, 5 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
daniel: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index 9ad9dce..ec149d1 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -481,14 +481,17 @@
static void xua_asp_fsm_inactive_onenter(struct osmo_fsm_inst *fi, uint32_t prev_state)
{
struct xua_asp_fsm_priv *xafp = fi->priv;
+ struct osmo_ss7_asp *asp = xafp->asp;
/* RFC4666 4.3.4.5: "When an ASP moves from ASP-DOWN to ASP-INACTIVE within a
* particular AS, a Notify message SHOULD be sent, by the ASP-UP receptor,
* after sending the ASP-UP-ACK, in order to inform the ASP of the current AS
* state."
+ * NOTIFY is only transmitted by roles SG and IPSP.
*/
struct xua_as_event_asp_inactive_ind_pars pars = {
- .asp = xafp->asp,
- .asp_requires_notify = (prev_state == XUA_ASP_S_DOWN),
+ .asp = asp,
+ .asp_requires_notify = (asp->cfg.role != OSMO_SS7_ASP_ROLE_ASP) &&
+ (prev_state == XUA_ASP_S_DOWN),
};
dispatch_to_all_as(fi, XUA_ASPAS_ASP_INACTIVE_IND, &pars);
}
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/39702?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I48848a69cabbd1c7279344dc8b2b7e2927894d26
Gerrit-Change-Number: 39702
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>