fixeria has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/36008?usp=email )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: xua_asp_send_xlm_prim(): use LOGPFSML() to print more context
......................................................................
xua_asp_send_xlm_prim(): use LOGPFSML() to print more context
The LOGPFSML() prints current state of an ASP FSM instance,
which is useful for debugging.
Change-Id: I28f3f89a8158bbedc224922a6ec151b1bbd6c7c0
---
M src/xua_asp_fsm.c
1 file changed, 14 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/src/xua_asp_fsm.c b/src/xua_asp_fsm.c
index 8bb5b64..fadcde9 100644
--- a/src/xua_asp_fsm.c
+++ b/src/xua_asp_fsm.c
@@ -112,8 +112,8 @@
if (lm && lm->prim_cb)
lm->prim_cb(&prim->oph, asp);
else {
- LOGPASP(asp, DLSS7, LOGL_DEBUG, "No Layer Manager, dropping %s\n",
- osmo_xlm_prim_name(&prim->oph));
+ LOGPFSML(asp->fi, LOGL_DEBUG, "No Layer Manager, dropping %s\n",
+ osmo_xlm_prim_name(&prim->oph));
}
msgb_free(prim->oph.msg);
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/36008?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I28f3f89a8158bbedc224922a6ec151b1bbd6c7c0
Gerrit-Change-Number: 36008
Gerrit-PatchSet: 3
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/36086?usp=email )
Change subject: cosmetic: reduce nesting in osmo_ss7_as_find_by_proto()
......................................................................
cosmetic: reduce nesting in osmo_ss7_as_find_by_proto()
Change-Id: I16e460b91f57bea6606c111335257d717d5423d0
Related: SYS#5424
---
M src/osmo_ss7.c
1 file changed, 19 insertions(+), 10 deletions(-)
Approvals:
pespin: Looks good to me, but someone else must approve
Jenkins Builder: Verified
osmith: Looks good to me, approved
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index dbbef6b..dadb68e 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -915,18 +915,17 @@
/* Loop through the list with AS and try to find one where the proto
matches up */
llist_for_each_entry(as, &inst->as_list, list) {
- if (as->cfg.proto == proto) {
+ if (as->cfg.proto != proto)
+ continue;
- /* Put down the first AS that matches the proto, just in
- * case we will not find any matching ASP */
- if (!as_without_asp)
- as_without_asp = as;
+ /* Put down the first AS that matches the proto, just in
+ * case we will not find any matching ASP */
+ if (!as_without_asp)
+ as_without_asp = as;
- /* Check if the candicate we have here has any suitable
- * ASP */
- if (osmo_ss7_asp_find_by_proto(as, proto))
- return as;
- }
+ /* Check if the candicate we have here has any suitable ASP */
+ if (osmo_ss7_asp_find_by_proto(as, proto))
+ return as;
}
/* Return with the second best find, if there is any */
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/36086?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I16e460b91f57bea6606c111335257d717d5423d0
Gerrit-Change-Number: 36086
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
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>
Gerrit-MessageType: merged
Attention is currently required from: matanp.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bsc/+/36084?usp=email )
Change subject: ctrl: Add lchan show to all ctrl levels
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/36084?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I23c1a7e6f6679e3964e359fb202ffe6781a07e8a
Gerrit-Change-Number: 36084
Gerrit-PatchSet: 3
Gerrit-Owner: matanp <matan1008(a)gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: matanp <matan1008(a)gmail.com>
Gerrit-Comment-Date: Tue, 27 Feb 2024 09:16:07 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: osmith.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/36071?usp=email )
Change subject: gtp/gsn: gtp_new: replace calloc with talloc_zero
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
introducing this would break any hypothetical users of libgtp that use multiple threads, as we're introducing a single talloc context.
Going for __thread would have a per-thread talloc context.
Alternatively, you could simply add a new function where the user can pass in explicitly a talloc context. Then it's the users choice whether to use the legacy API (uses libgtp-internal talloc context like your patch) or pass in a (potentially thread specific) talloc context when creating the gsn.
--
To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/36071?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-Change-Id: Ie10dd6f32a42513f6d2b5c7dd0dd84b4f0d20afb
Gerrit-Change-Number: 36071
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Tue, 27 Feb 2024 08:32:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment