From c7f547f89793f3da48ff1f93a53b1be7596b425b Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Tue, 29 Jun 2021 13:18:42 +0200 Subject: ns2: Ignore NSVC with data_weight 0 for data Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0 Fixes: OS#5189 --- src/gb/gprs_ns2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c index 3bf31a3e..720e836f 100644 --- a/src/gb/gprs_ns2.c +++ b/src/gb/gprs_ns2.c @@ -414,6 +414,8 @@ static struct gprs_ns2_vc *ns2_load_sharing_weight_modulo( 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) -- cgit v1.2.3