<p style="white-space: pre-wrap; word-wrap: break-word;">The only problem I see is having two FSMs with the same ID seems strange, otherwise just some cosmetic comments, rest looks good!</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25056">View Change</a></p><p>7 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/+/25056/4/src/tbf.cpp">File src/tbf.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/+/25056/4/src/tbf.cpp@a767">Patch Set #4, Line 767:</a> <code style="font-family:monospace,monospace">s X2000,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">why was this removed? (maybe it makes sense to do this in a separate commit and explain it there?)</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/+/25056/4/src/tbf.cpp@967">Patch Set #4, Line 967:</a> <code style="font-family:monospace,monospace"> osmo_fsm_inst_update_id(tbf->ul_ass_fsm.fi, buf);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why give two separate FSMs the same ID, wouldn't it be better to add some kind of suffix that differentiates them?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25056/4/src/tbf_ul_ass_fsm.h">File src/tbf_ul_ass_fsm.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/+/25056/4/src/tbf_ul_ass_fsm.h@32">Patch Set #4, Line 32:</a> <code style="font-family:monospace,monospace">    TBF_UL_ASS_EV_CREATE_RLCMAC_MSG, /* Scheduler wants to gen+Tx the Ass (rej): data=tbf_ul_ass_ev_create_rlcmac_msg_ctx */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(line length)</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/+/25056/4/src/tbf_ul_ass_fsm.h@50">Patch Set #4, Line 50:</a> <code style="font-family:monospace,monospace">assignment_fsm_timeouts</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">where is assignment_fsm_timeouts defined? (I can't find it, maybe this has been renamed? it's also used two more times in other comments)</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/+/25056/4/src/tbf_ul_ass_fsm.h@52">Patch Set #4, Line 52:</a> <code style="font-family:monospace,monospace">fi</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">fi is passed as parameter, so this should be "the_pcu"?</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/+/25056/4/src/tbf_ul_ass_fsm.h@62">Patch Set #4, Line 62:</a> <code style="font-family:monospace,monospace">MS_ANR_EV_CREATE_RLCMAC_MSG</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">can't find this, do you mean TBF_UL_ASS_EV_CREATE_RLCMAC_MSG?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25056/4/src/tbf_ul_ass_fsm.c">File src/tbf_ul_ass_fsm.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/+/25056/4/src/tbf_ul_ass_fsm.c@306">Patch Set #4, Line 306:</a> <code style="font-family:monospace,monospace">bool tbf_ul_ass_rts(const struct gprs_rlcmac_tbf* tbf)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">assuming rts means.... ready to send? would be good to add it as comment</p><p style="white-space: pre-wrap; word-wrap: break-word;">(unless this is a very common abbreviation that I just didn't see much yet)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25056">change 25056</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/+/25056"/><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: Id414eafe9c04a9a8759c6fb1a483bf2ee093a4d2 </div>
<div style="display:none"> Gerrit-Change-Number: 25056 </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-CC: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 29 Jul 2021 07:18:56 +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>