Lines Matching refs:weight
123 wn[0].storage = wn[0].weight; in sort_weightened_nhops_weights()
125 uint32_t weight = wn[i].weight; // read from 'weight' as it's not reordered in sort_weightened_nhops_weights() local
127 for (j = i - 1; j >= 0 && wn[j].storage > weight; j--) in sort_weightened_nhops_weights()
129 wn[j + 1].storage = weight; in sort_weightened_nhops_weights()
171 if ((wn[i].weight % xmin) != 0) in calc_min_mpath_slots_fast()
246 remaining_sum += x[i].weight; in compile_nhgrp()
253 nh_weight = (uint64_t)x[i].weight; in compile_nhgrp()
258 remaining_sum -= x[i].weight; in compile_nhgrp()
702 rnd->rnd_weight = pnhops[0].weight; in nhgrp_get_filtered_group()
741 wn[0].weight = rnd_add->rnd_weight; in nhgrp_get_addition_group()
746 wn[1].weight = rnd_orig->rnd_weight; in nhgrp_get_addition_group()
818 wn->nh->nh_priv->nh_idx, wn->weight); in nhgrp_print_buf()
880 ext[i].nh_weight = nhg_priv->nhg_nh_weights[i].weight; in dump_nhgrp_entry()