<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">there is no downlink arq type "true" or "false".  While I agree i<br>fthere are only two discrete values you should use a type with only<br>two options, but if those optionsare not something that can be<br>"true" or "false", using bool is just as wrong as using int, isn't<br>it?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure I'm following.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In 44.060 §8.1.1 there's 'resegment bit' which could be 0 (type 2<br>ARQ) or 1 (type 1 ARQ). So it's boolean value. That's also how it's<br>used throughout the code so far.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not arguing that this bit has a true or false value, like any bit.</p><p style="white-space: pre-wrap; word-wrap: break-word;">However, the variable used in osmo-pcu is called "downlink ARQ type",<br>and clearly there is no type==true or type==false here, right?</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">In general, RLCMAC might operate in non-persistent (MBMS bearer,<br>43.246) acknowledged (types 1 and 2 above) and unacknowledged (no<br>ARQ) modes according to TS 43.064 §6.6.4.5 and §6.6.4.6.</p><p style="white-space: pre-wrap; word-wrap: break-word;">So when would we want to use some 3rd value for dl_arq_type and<br>which spec describes that case? </p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not saying we want to use a third value.  I'm saying if a variable<br>is not named like it is a yes/no or true/false condition, then either<br>the varialbe must be named differntly to use bool, or the type must<br>be changed from bool to enum.</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">>Or, in other words, if we make<br> > 'enum dl_arq_type', which would be the values for it besides TYPE1<br> > and TYPE2?<br> <br>no other types.</pre><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/13057">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13057">change 13057</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/13057"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I4d4fe5fe12068a4532cb3b61d4eeb229a77c1476 </div>
<div style="display:none"> Gerrit-Change-Number: 13057 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Daniel Willmann <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 19 Mar 2019 13:15:11 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>