<p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c">File src/osmo-bts-trx/sched_lchan_xcch.c:</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-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@63">Patch Set #3, Line 63:</a> <code style="font-family:monospace,monospace">repeated_ul_sacch_active_decision</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not sure if this file (which is more about mapping, interleaving, and convolutional coding) is the right place for such logic. Maybe l1sap is a better place? Not a merge blocker though. If you decide to keep it here, make it 'static', as it's a performance critical place.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@101">Patch Set #3, Line 101:</a> <code style="font-family:monospace,monospace">talloc_zero_size</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not really related, but I think we should move memory allocations out of the burst handlers. This needs to be done once during the channel activation, not on receipt of *every Uplink burst*.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@111">Patch Set #3, Line 111:</a> <code style="font-family:monospace,monospace">*chan_state->ul_bursts_prev</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is wrong, and may lead to NULL-pointer dereference if talloc returns NULL. CR-1.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@178">Patch Set #3, Line 178:</a> <code style="font-family:monospace,monospace">LOGL_NOTICE</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Not sure if this event actually deserves NOTICE. I would drop this logging statement.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@179">Patch Set #3, Line 179:</a> <code style="font-family:monospace,monospace">also yields good data</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">... and this reads really weird. Do we get good data block twice?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185/3/src/osmo-bts-trx/sched_lchan_xcch.c@192">Patch Set #3, Line 192:</a> <code style="font-family:monospace,monospace">L1SAP_IS_LINK_SACCH(trx_chan_desc[chan].link_id) && lchan->repeated_ul_sacch_active</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think it makes sense to pre-calculate this condition into a boolean variable, given that you're using this combination three times.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/21185">change 21185</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-bts/+/21185"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7e4cc33cc010866e41e3b594351a7f7bf93e08ac </div>
<div style="display:none"> Gerrit-Change-Number: 21185 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 19 Nov 2020 17:38:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>