<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 4:</p><p style="white-space: pre-wrap; word-wrap: break-word;">The SGSN could react on S_NS_UNBLOCK signal and check if the NSVC is persistant. We should ensure we don't reset a running BSVC.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">The S_NS_UNBLOCK is only used on Frame Relay or on non-spec-compliant "IPA style" Gb/IP.  Spec-compliant Gb/IP doesn't use the NS-RESET/BLOCK/UNBLOCK procedures, so this event is never received.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I am very much inclined to merge this patch as it fixes an annoying deadlock occurring in the real world at a customer installation.</p><p>Patch set 4:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/19027">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/19027/4/src/sgsn/sgsn_main.c">File src/sgsn/sgsn_main.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-sgsn/+/19027/4/src/sgsn/sgsn_main.c@215">Patch Set #4, Line 215:</a> <code style="font-family:monospace,monospace">              nsvc->state |= NSE_S_ALIVE;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">we shouldn't sent messages over dead nsvc's</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">The problem is that with the specific BSS I'm talking to, the only way to make the link active again is to send a BVC-RESET.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Basically it's stuck in an indefinite loop of:</p><p style="white-space: pre-wrap; word-wrap: break-word;">Jul 29 11:00:08 osmo-cn osmo-sgsn[1409]: <0010> gprs_bssgp.c:1099 NSEI=1000/BVCI=100 Rejecting PDU type BVC-UNBLOCK for unknown BVCI<br>Jul 29 11:00:08 osmo-cn osmo-sgsn[1409]: <0010> gprs_bssgp_util.c:237 BSSGP BVCI=100 Tx STATUS, cause=Unknown BVCI</p><p style="white-space: pre-wrap; word-wrap: break-word;">The BSS is ignoring that STATUS and the only way to recover after a SGSN restart is to send the BVC-RESET.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-sgsn/+/19027">change 19027</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/+/19027"/><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: I0b46035b40709c38bb9ab9493c11031a577e3ee0 </div>
<div style="display:none"> Gerrit-Change-Number: 19027 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 29 Jul 2020 09:12:30 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Comment-In-Reply-To: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>