mirror of https://gerrit.osmocom.org/libosmocore
ns2: Ignore NSVC with data_weight 0 for data
Change-Id: If0c2bee285f85110771326e07b513fc3e3f9d3f0 Fixes: OS#5189
This commit is contained in:
parent
3265ded36c
commit
c7f547f897
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue