<p style="white-space: pre-wrap; word-wrap: break-word;">I like this change, but CR-1 because of two potential copy-paste mistakes.</p><p>Patch set 1:<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-sgsn/+/15337">View Change</a></p><p>8 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15337/1/include/osmocom/sgsn/gprs_sgsn.h">File include/osmocom/sgsn/gprs_sgsn.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/15337/1/include/osmocom/sgsn/gprs_sgsn.h@43">Patch Set #1, Line 43:</a> <code style="font-family:monospace,monospace">PMM_</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Any reason why it needs to be prefixed with 'PMM_', and not with 'MM_'? What is the meaning of 'P' here? Maybe we should rather use 'MM_GB_ST_' and 'MM_IU_ST_' prefixes for both enums? This naming would help to avoid confusion.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_gmm.c">File src/gprs/gprs_gmm.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/15337/1/src/gprs/gprs_gmm.c@113">Patch Set #1, Line 113:</a> <code style="font-family:monospace,monospace">MM_IDLE</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Looks like a copy-paste error to me, as 'gprs_mm_state_iu' enum defines different states (than 'gprs_mm_state_gb').</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_gmm.c@181">Patch Set #1, Line 181:</a> <code style="font-family:monospace,monospace">mmctx_set_pmm_state</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same problem with naming, maybe we should also use '_iu_' / '_gb_' prefixes here?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_gmm.c@199">Patch Set #1, Line 199:</a> <code style="font-family:monospace,monospace">case PMM_DETACHED:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This change looks unrelated, but in general I am not against it.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_gmm.c@206">Patch Set #1, Line 206:</a> <code style="font-family:monospace,monospace">mmctx_set_mm_state</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_gmm.c@215">Patch Set #1, Line 215:</a> <code style="font-family:monospace,monospace">gprs_mm_state_iu_names</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Looks like a mistake to me.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_sgsn.c">File src/gprs/gprs_sgsn.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/15337/1/src/gprs/gprs_sgsn.c@230">Patch Set #1, Line 230:</a> <code style="font-family:monospace,monospace">   ctx->gb.mm_state = MM_IDLE;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Please keep the same order, it was after the 'ctx->gmm_state' assignment.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/15337/1/src/gprs/gprs_sgsn.c@265">Patch Set #1, Line 265:</a> <code style="font-family:monospace,monospace">    ctx->iu.mm_state = PMM_DETACHED;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/15337">change 15337</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-sgsn/+/15337"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sgsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6100d607da316da0595886c6968704dd9ccfbde9 </div>
<div style="display:none"> Gerrit-Change-Number: 15337 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </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: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 29 Aug 2019 23:08: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>