ns2: Ignore NSVC with data_weight 0 for data

Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0
Fixes: OS#5189
This commit is contained in:
Daniel Willmann 2021-06-29 13:18:42 +02:00
parent 3265ded36c
commit c7f547f897
1 changed files with 2 additions and 0 deletions

View File

@ -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)