Attention is currently required from: pespin.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email )
Change subject: Add ranap_decode_rab_releaseditemies_fromlist()
......................................................................
Patch Set 1:
(1 comment)
File include/osmocom/ranap/ranap_common.h:
https://gerrit.osmocom.org/c/osmo-iuh/+/36309/comment/2ab460fd_0d50f619
PS1, Line 666: int ranap_decode_rab_releaseditemies_fromlist(RANAP_RAB_ReleasedItemIEs_t *raB_ReleasedItemIEs, ANY_t *any_p);
> probably wanna follow the one field per line of the above, so that it looks similar.
Done
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I328819c650fc6cefe735093a846277b4f03e6b29
Gerrit-Change-Number: 36309
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 15 Mar 2024 19:37:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment
Attention is currently required from: laforge, pespin.
Hello Jenkins Builder, pespin,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+1 by pespin, Verified+1 by Jenkins Builder
Change subject: Add ranap_decode_rab_releaseditemies_fromlist()
......................................................................
Add ranap_decode_rab_releaseditemies_fromlist()
This function is analogous to existing ranap_decode_*_itemies_fromlist()
which we already had.
This is needed in an upcoming osmo-hnbgw patchset where we need to parse
the ReleasedItems in order to track RAB release progess in order to
gather KPIs on RAB release.
Change-Id: I328819c650fc6cefe735093a846277b4f03e6b29
---
M include/osmocom/ranap/ranap_common.h
M src/ranap_common.c
2 files changed, 44 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/09/36309/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I328819c650fc6cefe735093a846277b4f03e6b29
Gerrit-Change-Number: 36309
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Jenkins Builder has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/36311?usp=email )
Change subject: RAB activation/modification/release statistics
......................................................................
Patch Set 1:
(3 comments)
File src/osmo-hnbgw/kpi_ranap.c:
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-15162):
https://gerrit.osmocom.org/c/osmo-hnbgw/+/36311/comment/955a0106_36a27be7
PS1, Line 123: if (release_list_ie-> id != RANAP_ProtocolIE_ID_id_RAB_ReleaseItem)
spaces prohibited around that '->' (ctx:VxW)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-15162):
https://gerrit.osmocom.org/c/osmo-hnbgw/+/36311/comment/2e41c302_778b3058
PS1, Line 276: if (failed_list_ie-> id != RANAP_ProtocolIE_ID_id_RAB_FailedItem)
spaces prohibited around that '->' (ctx:VxW)
Robot Comment from checkpatch (run ID jenkins-gerrit-lint-15162):
https://gerrit.osmocom.org/c/osmo-hnbgw/+/36311/comment/a2127a10_803cc54d
PS1, Line 322: if (failed_list_ie-> id != RANAP_ProtocolIE_ID_id_RAB_FailedItem)
spaces prohibited around that '->' (ctx:VxW)
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/36311?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I198fa37699e22380909764de6a0522ac79aa1d39
Gerrit-Change-Number: 36311
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-CC: Jenkins Builder
Gerrit-Comment-Date: Fri, 15 Mar 2024 19:32:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hnbgw/+/36312?usp=email )
Change subject: context_map_{rua,sccp}: Re-order to always process KPIs
......................................................................
context_map_{rua,sccp}: Re-order to always process KPIs
Prior to this patch we always decoded CS RANAP, but only decoded PS
RANAP in case PFCP support was enabled. This meant that PS KPIs
were only counted when PFCP was enabled, too.
Let's move to a mode where we unconditionally decode RANAP and always
call the KPI module for updating the rate counters.
Change-Id: I6054b6efcc202ebd71cd6e135e49c279ba616a01
---
M src/osmo-hnbgw/context_map_rua.c
M src/osmo-hnbgw/context_map_sccp.c
2 files changed, 45 insertions(+), 50 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/12/36312/1
diff --git a/src/osmo-hnbgw/context_map_rua.c b/src/osmo-hnbgw/context_map_rua.c
index a943a64..f37ded8 100644
--- a/src/osmo-hnbgw/context_map_rua.c
+++ b/src/osmo-hnbgw/context_map_rua.c
@@ -161,39 +161,33 @@
if (!msg_has_l2_data(ranap_msg))
return 0;
- /* See if it is a RAB Assignment Response message from RUA to SCCP, where we need to change the user plane
- * information, for RTP mapping via MGW, or GTP mapping via UPF. */
- if (!map->is_ps) {
- ranap_message *message = hnbgw_decode_ranap_co(ranap_msg);
- if (message) {
- LOGPFSML(fi, LOGL_DEBUG, "rx from RUA: RANAP %s\n",
- get_value_string(ranap_procedure_code_vals, message->procedureCode));
+ ranap_message *message = hnbgw_decode_ranap_co(ranap_msg);
+ if (message) {
+ LOGPFSML(fi, LOGL_DEBUG, "rx from RUA: RANAP %s\n",
+ get_value_string(ranap_procedure_code_vals, message->procedureCode));
- kpi_ranap_process_ul(map, message);
+ kpi_ranap_process_ul(map, message);
+ if (!map->is_ps) {
+ /* See if it is a RAB Assignment Response message from RUA to SCCP, where we need to change the user plane
+ * information, for RTP mapping via MGW, or GTP mapping via UPF. */
switch (message->procedureCode) {
case RANAP_ProcedureCode_id_RAB_Assignment:
/* mgw_fsm_handle_rab_ass_resp() takes ownership of prim->oph and (ranap) message */
return mgw_fsm_handle_cs_rab_ass_resp(map, ranap_msg, message);
}
- }
+ } else {
#if ENABLE_PFCP
- } else if (hnb_gw_is_gtp_mapping_enabled()) {
- /* map->is_ps == true and PFCP is enabled in osmo-hnbgw.cfg */
- ranap_message *message = hnbgw_decode_ranap_co(ranap_msg);
- if (message) {
- LOGPFSML(fi, LOGL_DEBUG, "rx from RUA: RANAP %s\n",
- get_value_string(ranap_procedure_code_vals, message->procedureCode));
-
- kpi_ranap_process_ul(map, message);
-
- switch (message->procedureCode) {
- case RANAP_ProcedureCode_id_RAB_Assignment:
- /* ps_rab_ass_fsm takes ownership of prim->oph and RANAP message */
- return hnbgw_gtpmap_rx_rab_ass_resp(map, ranap_msg, message);
+ if (hnb_gw_is_gtp_mapping_enabled()) {
+ /* map->is_ps == true and PFCP is enabled in osmo-hnbgw.cfg */
+ switch (message->procedureCode) {
+ case RANAP_ProcedureCode_id_RAB_Assignment:
+ /* ps_rab_ass_fsm takes ownership of prim->oph and RANAP message */
+ return hnbgw_gtpmap_rx_rab_ass_resp(map, ranap_msg, message);
+ }
}
- }
#endif
+ }
}
/* It was not a RAB Assignment Response that needed to be intercepted. Forward as-is to SCCP. */
diff --git a/src/osmo-hnbgw/context_map_sccp.c b/src/osmo-hnbgw/context_map_sccp.c
index e7e27b6..10ddaf2 100644
--- a/src/osmo-hnbgw/context_map_sccp.c
+++ b/src/osmo-hnbgw/context_map_sccp.c
@@ -204,19 +204,19 @@
/* See if it is a RAB Assignment Request message from SCCP to RUA, where we need to change the user plane
* information, for RTP mapping via MGW, or GTP mapping via UPF. */
- if (!map->is_ps) {
- ranap_message *message;
- /* Circuit-Switched. Set up mapping of RTP ports via MGW */
- message = talloc_zero(OTC_SELECT, ranap_message);
- rc = ranap_ran_rx_co_decode(message, message, msgb_l2(ranap_msg), msgb_l2len(ranap_msg));
+ ranap_message *message;
+ message = talloc_zero(OTC_SELECT, ranap_message);
+ rc = ranap_ran_rx_co_decode(message, message, msgb_l2(ranap_msg), msgb_l2len(ranap_msg));
+ if (rc == 0) {
+ talloc_set_destructor(message, destruct_ranap_ran_rx_co_ies);
- if (rc == 0) {
- talloc_set_destructor(message, destruct_ranap_ran_rx_co_ies);
+ LOGPFSML(fi, LOGL_DEBUG, "rx from SCCP: RANAP %s\n",
+ get_value_string(ranap_procedure_code_vals, message->procedureCode));
- LOGPFSML(fi, LOGL_DEBUG, "rx from SCCP: RANAP %s\n",
- get_value_string(ranap_procedure_code_vals, message->procedureCode));
+ kpi_ranap_process_dl(map, message);
- kpi_ranap_process_dl(map, message);
+ if (!map->is_ps) {
+ /* Circuit-Switched. Set up mapping of RTP ports via MGW */
switch (message->procedureCode) {
case RANAP_ProcedureCode_id_RAB_Assignment:
@@ -228,24 +228,9 @@
mgw_fsm_release(map);
break;
}
- }
#if ENABLE_PFCP
- } else {
- ranap_message *message;
- /* Packet-Switched. Set up mapping of GTP ports via UPF */
- message = talloc_zero(OTC_SELECT, ranap_message);
- rc = ranap_ran_rx_co_decode(message, message, msgb_l2(ranap_msg), msgb_l2len(ranap_msg));
-
- if (rc == 0) {
- talloc_set_destructor(message, destruct_ranap_ran_rx_co_ies);
-
- LOGPFSML(fi, LOGL_DEBUG, "rx from SCCP: RANAP %s\n",
- get_value_string(ranap_procedure_code_vals, message->procedureCode));
-
- kpi_ranap_process_dl(map, message);
-
+ } else {
switch (message->procedureCode) {
-
case RANAP_ProcedureCode_id_RAB_Assignment:
/* If a UPF is configured, handle the RAB Assignment via ps_rab_ass_fsm, and replace the
* GTP F-TEIDs in the RAB Assignment message before passing it on to RUA. */
@@ -265,8 +250,8 @@
hnbgw_gtpmap_release(map);
break;
}
- }
#endif
+ }
}
/* It was not a RAB Assignment Request that needed to be intercepted. Forward as-is to RUA. */
--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/36312?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I6054b6efcc202ebd71cd6e135e49c279ba616a01
Gerrit-Change-Number: 36312
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email )
Change subject: Add ranap_decode_rab_releaseditemies_fromlist()
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I don't see this being used in any commit yet, I guess it's being used soon?
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I328819c650fc6cefe735093a846277b4f03e6b29
Gerrit-Change-Number: 36309
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 15 Mar 2024 18:19:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/36310?usp=email )
Change subject: ranap_common: fix pointer type in ranap_decode_rab_releaseitemies_fromlist()
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/36310?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I16286c6f13dc4e8d5c6a7f0efacd22bafe04b0a5
Gerrit-Change-Number: 36310
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 15 Mar 2024 18:18:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: laforge.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email )
Change subject: Add ranap_decode_rab_releaseditemies_fromlist()
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File include/osmocom/ranap/ranap_common.h:
https://gerrit.osmocom.org/c/osmo-iuh/+/36309/comment/c303ffda_5cb0a453
PS1, Line 666: int ranap_decode_rab_releaseditemies_fromlist(RANAP_RAB_ReleasedItemIEs_t *raB_ReleasedItemIEs, ANY_t *any_p);
probably wanna follow the one field per line of the above, so that it looks similar.
--
To view, visit https://gerrit.osmocom.org/c/osmo-iuh/+/36309?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I328819c650fc6cefe735093a846277b4f03e6b29
Gerrit-Change-Number: 36309
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: Jenkins Builder
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Fri, 15 Mar 2024 18:17:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment