<p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25011">View Change</a></p><p>2 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/+/25011/4/src/pdch.cpp">File src/pdch.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/+/25011/4/src/pdch.cpp@371">Patch Set #4, Line 371:</a> <code style="font-family:monospace,monospace">               if (new_tbf->state_fsm.state_flags & (1 << GPRS_RLCMAC_FLAG_CCCH)) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I'm wondering, what's the rationale behind replacing check_n_clear here, but still using it in other […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Because this state_flags variable is a mess and used for tons of different things. In this patchset (this and follow commits) I'm so far moving a subset of its uses to the FSM: basically flags GPRS_RLCMAC_FLAG_CCCH and GPRS_RLCMAC_FLAG_PACCH.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So other flags are left intact.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25011/4/src/tbf_fsm.h">File src/tbf_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/+/25011/4/src/tbf_fsm.h@48">Patch Set #4, Line 48:</a> <code style="font-family:monospace,monospace">        uint32_t state_flags;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Have you considered calling it "flags", so it's "state_fsm.flags" instead of "state_fsm. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Yes, but I'm already moving too much stuff and I consider state_flags is a bit more informative than flags.<br>This variable will anyway be changing in the future when I get rid of other flags from here.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25011">change 25011</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/+/25011"/><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: I3c62e9e83965cb28065338733f182863e54d7474 </div>
<div style="display:none"> Gerrit-Change-Number: 25011 </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: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 27 Jul 2021 10:36:33 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>