Lines Matching refs:new_metric
391 u32 last_hop_metric, new_metric; in hwmp_route_info_get() local
430 new_metric = orig_metric + last_hop_metric; in hwmp_route_info_get()
431 if (new_metric < orig_metric) in hwmp_route_info_get()
432 new_metric = MAX_METRIC; in hwmp_route_info_get()
453 mult_frac(new_metric, 10, 9) : in hwmp_route_info_get()
454 new_metric) >= mpath->metric)) { in hwmp_route_info_get()
493 mpath->metric = new_metric; in hwmp_route_info_get()
556 return process ? new_metric : 0; in hwmp_route_info_get()
819 u32 orig_sn, new_metric, orig_metric, last_hop_metric, interval; in hwmp_rann_frame_process() local
848 new_metric = orig_metric + last_hop_metric; in hwmp_rann_frame_process()
849 if (new_metric < orig_metric) in hwmp_rann_frame_process()
850 new_metric = MAX_METRIC; in hwmp_rann_frame_process()
863 !(mpath->sn == orig_sn && new_metric < mpath->rann_metric)) { in hwmp_rann_frame_process()
881 mpath->rann_metric = new_metric; in hwmp_rann_frame_process()
901 new_metric, 0, sdata); in hwmp_rann_frame_process()