aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-06-29 13:18:42 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2021-06-29 13:18:42 +0200
commitc7f547f89793f3da48ff1f93a53b1be7596b425b (patch)
tree5c00d742253fbc3836e00cb2b6c813808d94f41d /src/gb
parent3265ded36c678ce958293d886fc839a2bc4c714f (diff)
ns2: Ignore NSVC with data_weight 0 for datadaniel/misc
Diffstat (limited to 'src/gb')
-rw-r--r--src/gb/gprs_ns2.c2
1 files changed, 2 insertions, 0 deletions
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)