<p>Patch set 4:<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-pcu/+/22309">View Change</a></p><p>11 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/3/src/bts.cpp">File src/bts.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/+/22309/3/src/bts.cpp@1132">Patch Set #3, Line 1132:</a> <code style="font-family:monospace,monospace">void bts_update_tbf_ta(struct gprs_rlcmac_bts *bts, const char *p, uint32_t fn, uint8_t trx_no, uint8_t ts, int8_t ta, bool is_rach)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(line too long)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/3/src/gprs_bssgp_pcu.c">File src/gprs_bssgp_pcu.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-pcu/+/22309/3/src/gprs_bssgp_pcu.c@213">Patch Set #3, Line 213:</a> <code style="font-family:monospace,monospace">      /* FIXME: look if MS is attached a specific BTS and then only page on that one? */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Sounds like looping over the attached BTS and their MS would solve it. Is this out of scope for this patch?</p><p style="white-space: pre-wrap; word-wrap: break-word;">(same with _ps below)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/3/src/gprs_bssgp_pcu.c@823">Patch Set #3, Line 823:</a> <code style="font-family:monospace,monospace">        bts = llist_first_entry_or_null(&the_pcu->bts_list, struct gprs_rlcmac_bts, list);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why not add bts as parameter to gprs_bssgp_pcu_rx_ptp()?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/3/src/gprs_rlcmac.h">File src/gprs_rlcmac.h:</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/+/22309/3/src/gprs_rlcmac.h@116">Patch Set #3, Line 116:</a> <code style="font-family:monospace,monospace"> </code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(space)</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/3/src/osmo-bts-litecell15/lc15_l1_if.c">File src/osmo-bts-litecell15/lc15_l1_if.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-pcu/+/22309/3/src/osmo-bts-litecell15/lc15_l1_if.c@160">Patch Set #3, Line 160:</a> <code style="font-family:monospace,monospace">        bts = llist_first_entry_or_null(&the_pcu->bts_list, struct gprs_rlcmac_bts, list);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">add bts parameter instead, or at least a FIXME comment like above?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Same with all other "bts = llist_first_entry_or_null" lines below / in other files.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Alternatively / additionally to FIXME everywhere, maybe add a note in README under "Current limitations".</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/osmobts_sock.c">File src/osmobts_sock.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-pcu/+/22309/4/src/osmobts_sock.c@64">Patch Set #4, Line 64:</a> <code style="font-family:monospace,monospace">   bool retry = !llist_empty(&the_pcu->bts_list);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think the ! is wrong, shouldn't retry be true if the list is empty?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/osmobts_sock.c@114">Patch Set #4, Line 114:</a> <code style="font-family:monospace,monospace"> llist_for_each_entry(bts, &the_pcu->bts_list, list) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">My understanding is, that if one bts closes the socket to the pcu, the pcu will give up completely, drop all bts and exit. So this could use another FIXME.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/pcu_l1_if.h">File src/pcu_l1_if.h:</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/+/22309/4/src/pcu_l1_if.h@159">Patch Set #4, Line 159:</a> <code style="font-family:monospace,monospace">struct gprs_rlcmac_bts;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">its declared above already in the "ifdef __cplusplus" section. is that on purpose?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/pcu_l1_if.cpp">File src/pcu_l1_if.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/+/22309/4/src/pcu_l1_if.cpp@845">Patch Set #4, Line 845:</a> <code style="font-family:monospace,monospace">      bts = gprs_pcu_get_bts_by_nr(the_pcu, pcu_prim->bts_nr);</code></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">this is called twice:<br>  gprs_pcu_get_bts_by_nr(the_pcu, pcu_prim->bts_nr);</pre></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/pcu_vty.c">File src/pcu_vty.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-pcu/+/22309/4/src/pcu_vty.c@1073">Patch Set #4, Line 1073:</a> <code style="font-family:monospace,monospace">               pcu_vty_show_tbf_all(vty, bts, flags);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Print out the BTS number too? Otherwise it will just be "UL TBFs", "DL TBFs", "UL TBFs", ...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309/4/src/pcu_vty.c@1085">Patch Set #4, Line 1085:</a> <code style="font-family:monospace,monospace">          pcu_vty_show_ms_all(vty, bts);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">How about extending show_ms() to mention the BTS number?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22309">change 22309</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/+/22309"/><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: I6b10913f46c19d438c4e250a436a7446694b725a </div>
<div style="display:none"> Gerrit-Change-Number: 22309 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 19 Jan 2021 16:12:52 +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>