Attention is currently required from: fixeria, lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40692?usp=email )
Change subject: routing area: add LOGRA() logging macro
......................................................................
Patch Set 2: Code-Review-1
(2 comments)
File include/osmocom/sgsn/gprs_routing_area.h:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40692/comment/22cec5d5_4bf9d529?us… :
PS2, Line 15: char __log_rai_buf[32]; \
are you sure 32 is enough? sounds a bit tight.
https://gerrit.osmocom.org/c/osmo-sgsn/+/40692/comment/a9bceb67_fccc7979?us… :
PS2, Line 16: osmo_rai_name2_buf
> Why not using `osmo_rai_name2()` here? I guess to allow the macro user to use it?
Yeah, I had similar problems in libosmo-sigtran. I'm in favour of using _buf() here.
But: since osmo_rai_name2_buf() returns a char*, do move this call inside LOGP(), so the encoding only happens if logged based on category+loglevel thanks to macro.
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40692?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: Ib287b70c34b21ce64bc864f69fcf6af5fa0698b9
Gerrit-Change-Number: 40692
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
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-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 20:05:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: fixeria, lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40691?usp=email )
Change subject: routing area: on alloc, check if RA already exists
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
File src/sgsn/gprs_routing_area.c:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40691/comment/2629c61a_5fd7249c?us… :
PS2, Line 88: LOGL_ERROR
> Is this supposed to happen regularly? If so, `LOGL_ERROR` looks too verbose.
Please, leave this alloc function lone and use a find_or_create() API instead which uses this alloc function.
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40691?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: I6955a09d9d8f3ba4dc3a14d7ed5cd9798d929c61
Gerrit-Change-Number: 40691
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
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-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 20:02:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40689?usp=email )
Change subject: use variable name rai for `struct osmo_routing_area_id`
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40689?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: I946983d4857035e06c68af378654466b35025014
Gerrit-Change-Number: 40689
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 20:00:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: fixeria, lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40688?usp=email )
Change subject: routing area: introduce ran_type on the RA
......................................................................
Patch Set 2:
(4 comments)
File include/osmocom/sgsn/gprs_routing_area.h:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40688/comment/7a12eec4_e67b97e6?us… :
PS2, Line 34: * and for routing, the SGSN must know to which PCU a given cell is connected.
"... and, for routing, the SGSN".
Or even better, remove the "and" and add a dot ;)
https://gerrit.osmocom.org/c/osmo-sgsn/+/40688/comment/8bed0963_826b0559?us… :
PS2, Line 35: 2x PCU serves
> you mean "more than one PCU" here?
Agree with fixeria, writing like does clarifies it.
https://gerrit.osmocom.org/c/osmo-sgsn/+/40688/comment/707827e3_cd56f902?us… :
PS2, Line 47: which are alive
> maybe call it `alive_cells` or `cells_alive` then?
yeah, known_cells, active_cells, served_cells, whatever. And Usually having "_list" suffix also helps imho.
File src/sgsn/gprs_routing_area.c:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40688/comment/9738e2c3_3b1daaa5?us… :
PS2, Line 201: valid for GERAN
> If some API is GERAN specific, maybe function names should reflect that? […]
I agree, but this commit can't fix all that at the same time.
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40688?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: I59c35f1a4912ff11574bb31e4fe424816993548c
Gerrit-Change-Number: 40688
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 20:00:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40699?usp=email )
Change subject: ranap: split mmctx related iu events into own function
......................................................................
Patch Set 1:
(1 comment)
File src/sgsn/gprs_ranap.c:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40699/comment/83a5d8d2_83fe4a13?us… :
PS1, Line 145: if (!ctx) {
why aren't you doing this check in the function below?
This one seems to suggest only the "mm"/"mmctx" is the relevant part?
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40699?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: Ie6f131d29da299f09e897240ec5c39a395ce6f1b
Gerrit-Change-Number: 40699
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 19:52:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: fixeria, lynxis lazus.
pespin has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-sgsn/+/40698?usp=email )
Change subject: mmctx: LOGIUP: allow ue to be NULL
......................................................................
Patch Set 1: Code-Review-1
(2 comments)
File include/osmocom/sgsn/mmctx.h:
https://gerrit.osmocom.org/c/osmo-sgsn/+/40698/comment/c039c893_ebabc67d?us… :
PS1, Line 236: ue->conn_id
> idea for a separate patch: `(ue)->conn_id`
Yes please @lynxis@fe80.eu edit this patch and add the parenthesis.
https://gerrit.osmocom.org/c/osmo-sgsn/+/40698/comment/62a8a08f_2b4fcff5?us… :
PS1, Line 238: {}
> I would not print curly braces in the case of `NULL` at all.
We tend to do this null case as a "(ue) ? foo : bar".
This has the advantage that the whole logic is only executed in case there's a logging happening due to level+category being logged, thanks to macro expansion.
With your approach you are always running through at least an if+else. Please rework it.
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/40698?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: Ie569fa100abe518cb63c1b918ad7748a7ea3bb99
Gerrit-Change-Number: 40698
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
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-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 19:50:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Attention is currently required from: lynxis lazus.
fixeria has posted comments on this change by lynxis lazus. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40667?usp=email )
Change subject: GSUP_Templates: ts_GSUP_UL_REQ: add "(omit)" to templates
......................................................................
Patch Set 2: Code-Review-1
(1 comment)
File library/GSUP_Templates.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40667/comment/ba19ba2c_4ef4… :
PS2, Line 413: omit
This makes no sense. It should be `(value)` because this template always yields a value.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/40667?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I250960a1e1c19dfa1efa81f6bbc93efa07cb225c
Gerrit-Change-Number: 40667
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Tue, 15 Jul 2025 19:26:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes