diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2021-06-29 13:18:42 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2021-06-29 13:18:42 +0200 |
commit | c7f547f89793f3da48ff1f93a53b1be7596b425b (patch) | |
tree | 5c00d742253fbc3836e00cb2b6c813808d94f41d /src/gb/gprs_ns2.c | |
parent | 3265ded36c678ce958293d886fc839a2bc4c714f (diff) |
ns2: Ignore NSVC with data_weight 0 for datadaniel/misc
Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0
Fixes: OS#5189
Diffstat (limited to 'src/gb/gprs_ns2.c')
-rw-r--r-- | src/gb/gprs_ns2.c | 2 |
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) |