<p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20271">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20271/1/src/gprs_bssgp_pcu.cpp">File src/gprs_bssgp_pcu.cpp:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20271/1/src/gprs_bssgp_pcu.cpp@630">Patch Set #1, Line 630:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">struct gprs_ns2_inst *nsi = (struct gprs_ns2_inst *) ctx;<br>  struct osmo_gprs_ns2_prim nsp = {};<br>   nsp.nsei = msgb_nsei(msg);<br>    nsp.bvci = msgb_bvci(msg);<br>    osmo_prim_init(&nsp.oph, SAP_NS, PRIM_NS_UNIT_DATA,<br>                       PRIM_OP_REQUEST, msg);<br>        return gprs_ns2_recv_prim(nsi, &nsp.oph);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">normally I would have expected that the primitive header is pushed onto the msgb itself to form a so-called 'msgb-wrapped osmo_prim'.  Any reason to go for a primitive on the stack instaed?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/20271">change 20271</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcu/+/20271"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib389925cf5c9f18951af6242c31ea70476218e9a </div>
<div style="display:none"> Gerrit-Change-Number: 20271 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 25 Sep 2020 09:53:20 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>