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>