<p>Harald Welte <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/14152">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_alloc: Don't include CBCH channels in load computation<br><br>When displaying the channel (lchan) load, we are interested in the<br>dedicated channels as available for communication with mobile<br>stations.  If CBCH is enabled, it "steals" one of the SDCCH slots,<br>so we have to exclude this channel from the count of available<br>dedicated channels.<br><br>Before this patch, A CBCH would show up as "in use" dedicated channel<br>(so both the total and the in_use count were incremented).<br><br>After this patch, neither "total" nor "use" are affected; The CBCH<br>slot is completely excluded from load statistics.<br><br>Change-Id: I606962e4977f122ff05a2d4e756c04c7f38bdaa0<br>---<br>M src/osmo-bsc/chan_alloc.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/chan_alloc.c b/src/osmo-bsc/chan_alloc.c</span><br><span>index 9c43414..7f0aa31 100644</span><br><span>--- a/src/osmo-bsc/chan_alloc.c</span><br><span>+++ b/src/osmo-bsc/chan_alloc.c</span><br><span>@@ -59,6 +59,10 @@</span><br><span>                                continue;</span><br><span> </span><br><span>                        ts_for_each_lchan(lchan, ts) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                /* don't even count CBCH slots in total */</span><br><span style="color: hsl(120, 100%, 40%);">+                                if (lchan->type == GSM_LCHAN_CBCH)</span><br><span style="color: hsl(120, 100%, 40%);">+                                 continue;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>                          pl->total++;</span><br><span> </span><br><span>                          switch (lchan->fi->state) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14152">change 14152</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/14152"/><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-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I606962e4977f122ff05a2d4e756c04c7f38bdaa0 </div>
<div style="display:none"> Gerrit-Change-Number: 14152 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>