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

daniel gerrit-no-reply at lists.osmocom.org
Tue Jun 29 16:56:27 UTC 2021


daniel has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210629/85ad5972/attachment.htm>


More information about the gerrit-log mailing list