<p>pespin <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24977">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  dexter: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">abis_rsl: Log chan rqd reason on resource exhaustion log message<br><br>This allows better understanding which of use is exhausting channels<br>when there a lot of load.<br><br>Change-Id: Ic68162c2d52df07b05c76374e2a92148b9a7ccd5<br>---<br>M src/osmo-bsc/abis_rsl.c<br>1 file changed, 8 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c</span><br><span>index c84aeda..5bb0efe 100644</span><br><span>--- a/src/osmo-bsc/abis_rsl.c</span><br><span>+++ b/src/osmo-bsc/abis_rsl.c</span><br><span>@@ -2014,18 +2014,20 @@</span><br><span>      * (if possible). */</span><br><span> </span><br><span>     if (!lchan) {</span><br><span style="color: hsl(0, 100%, 40%);">-           LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD: no resources for %s 0x%x, retrying with %s\n",</span><br><span style="color: hsl(0, 100%, 40%);">-                     gsm_lchant_name(GSM_LCHAN_SDCCH), rqd->ref.ra, gsm_lchant_name(GSM_LCHAN_TCH_H));</span><br><span style="color: hsl(120, 100%, 40%);">+          LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD[%s]: no resources for %s 0x%x, retrying with %s\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                       get_value_string(gsm_chreq_descs, rqd->reason), gsm_lchant_name(GSM_LCHAN_SDCCH),</span><br><span style="color: hsl(120, 100%, 40%);">+                  rqd->ref.ra, gsm_lchant_name(GSM_LCHAN_TCH_H));</span><br><span>           lchan = lchan_select_by_type(bts, GSM_LCHAN_TCH_H);</span><br><span>  }</span><br><span>    if (!lchan) {</span><br><span style="color: hsl(0, 100%, 40%);">-           LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD: no resources for %s 0x%x, retrying with %s\n",</span><br><span style="color: hsl(0, 100%, 40%);">-                     gsm_lchant_name(GSM_LCHAN_SDCCH), rqd->ref.ra, gsm_lchant_name(GSM_LCHAN_TCH_F));</span><br><span style="color: hsl(120, 100%, 40%);">+          LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD[%s]: no resources for %s 0x%x, retrying with %s\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                       get_value_string(gsm_chreq_descs, rqd->reason), gsm_lchant_name(GSM_LCHAN_SDCCH),</span><br><span style="color: hsl(120, 100%, 40%);">+                  rqd->ref.ra, gsm_lchant_name(GSM_LCHAN_TCH_F));</span><br><span>           lchan = lchan_select_by_type(bts, GSM_LCHAN_TCH_F);</span><br><span>  }</span><br><span>    if (!lchan) {</span><br><span style="color: hsl(0, 100%, 40%);">-           LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD: no resources for %s 0x%x\n",</span><br><span style="color: hsl(0, 100%, 40%);">-                       gsm_lchant_name(lctype), rqd->ref.ra);</span><br><span style="color: hsl(120, 100%, 40%);">+             LOG_BTS(bts, DRSL, LOGL_NOTICE, "CHAN RQD[%s]: no resources for %s 0x%x\n",</span><br><span style="color: hsl(120, 100%, 40%);">+                 get_value_string(gsm_chreq_descs, rqd->reason), gsm_lchant_name(lctype), rqd->ref.ra);</span><br><span>                 rate_ctr_inc(rate_ctr_group_get_ctr(bts->bts_ctrs, BTS_CTR_CHREQ_NO_CHANNEL));</span><br><span>            rsl_tx_imm_ass_rej(bts, &rqd->ref);</span><br><span>           llist_del(&rqd->entry);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/24977">change 24977</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-bsc/+/24977"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic68162c2d52df07b05c76374e2a92148b9a7ccd5 </div>
<div style="display:none"> Gerrit-Change-Number: 24977 </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: Hoernchen <ewild@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: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>