Change in libosmocore[master]: ns2: Ignore NSVC with data_weight 0 for data

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

daniel gerrit-no-reply at lists.osmocom.org
Tue Jun 29 12:13:11 UTC 2021


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 <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210629/1c072717/attachment.htm>


More information about the gerrit-log mailing list