fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30400 )
Change subject: mobile: gsm_forward_mncc(): call mncc_sock_from_cc() directly ...................................................................... mobile: gsm_forward_mncc(): call mncc_sock_from_cc() directly This way we can avoid allocating another msgb and enqueue the given msgb directly to the write queue of the MNCC socket. Change-Id: I29305866e61a0bc3bd082108af6a9ba8ff86bcf2 Related: OS#5599 --- M src/host/layer23/src/mobile/voice.c 1 file changed, 2 insertions(+), 3 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/00/30400/1 diff --git a/src/host/layer23/src/mobile/voice.c b/src/host/layer23/src/mobile/voice.c index 5833cad..58c62d6 100644 --- a/src/host/layer23/src/mobile/voice.c +++ b/src/host/layer23/src/mobile/voice.c @@ -51,9 +51,8 @@ } /* distribute and then free */ - if (ms->mncc_entity.mncc_recv && ms->mncc_entity.ref) { - ms->mncc_entity.mncc_recv(ms, mncc->msg_type, mncc); - } + if (ms->mncc_entity.sock_state && ms->mncc_entity.ref) + return mncc_sock_from_cc(ms->mncc_entity.sock_state, msg); exit_free: msgb_free(msg); -- To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30400 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmocom-bb Gerrit-Branch: master Gerrit-Change-Id: I29305866e61a0bc3bd082108af6a9ba8ff86bcf2 Gerrit-Change-Number: 30400 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanits...@sysmocom.de> Gerrit-MessageType: newchange