daniel has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/24792 )


Change subject: ns2: Ignore NSVC with data_weight 0 for data
......................................................................

ns2: Ignore NSVC with data_weight 0 for data

Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0
Fixes: OS#5189
---
M src/gb/gprs_ns2.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/92/24792/1

diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 3bf31a3..720e836 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -414,6 +414,8 @@

        mod = (bvci + load_selector) % nse->sum_data_weight;
        llist_for_each_entry(tmp, &nse->nsvc, list) {
+               if (tmp->data_weight == 0)
+                       continue;
                if (!ns2_vc_is_unblocked(tmp))
                        continue;
                if (i == mod || mod < i + tmp->data_weight)

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/24792
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0
Gerrit-Change-Number: 24792
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <[email protected]>
Gerrit-MessageType: newchange

Reply via email to