Lines Matching refs:new_metric
396 u32 last_hop_metric, new_metric; in hwmp_route_info_get() local
435 new_metric = orig_metric + last_hop_metric; in hwmp_route_info_get()
436 if (new_metric < orig_metric) in hwmp_route_info_get()
437 new_metric = MAX_METRIC; in hwmp_route_info_get()
458 mult_frac(new_metric, 10, 9) : in hwmp_route_info_get()
459 new_metric) >= mpath->metric)) { in hwmp_route_info_get()
498 mpath->metric = new_metric; in hwmp_route_info_get()
561 return process ? new_metric : 0; in hwmp_route_info_get()
824 u32 orig_sn, new_metric, orig_metric, last_hop_metric, interval; in hwmp_rann_frame_process() local
853 new_metric = orig_metric + last_hop_metric; in hwmp_rann_frame_process()
854 if (new_metric < orig_metric) in hwmp_rann_frame_process()
855 new_metric = MAX_METRIC; in hwmp_rann_frame_process()
868 !(mpath->sn == orig_sn && new_metric < mpath->rann_metric)) { in hwmp_rann_frame_process()
886 mpath->rann_metric = new_metric; in hwmp_rann_frame_process()
906 new_metric, 0, sdata); in hwmp_rann_frame_process()