Lines Matching refs:new_metric
387 u32 last_hop_metric, new_metric; in hwmp_route_info_get() local
423 new_metric = orig_metric + last_hop_metric; in hwmp_route_info_get()
424 if (new_metric < orig_metric) in hwmp_route_info_get()
425 new_metric = MAX_METRIC; in hwmp_route_info_get()
444 new_metric >= mpath->metric)) { in hwmp_route_info_get()
481 mpath->metric = new_metric; in hwmp_route_info_get()
538 return process ? new_metric : 0; in hwmp_route_info_get()
801 u32 orig_sn, new_metric, orig_metric, last_hop_metric, interval; in hwmp_rann_frame_process() local
830 new_metric = orig_metric + last_hop_metric; in hwmp_rann_frame_process()
831 if (new_metric < orig_metric) in hwmp_rann_frame_process()
832 new_metric = MAX_METRIC; in hwmp_rann_frame_process()
845 !(mpath->sn == orig_sn && new_metric < mpath->rann_metric)) { in hwmp_rann_frame_process()
863 mpath->rann_metric = new_metric; in hwmp_rann_frame_process()
883 new_metric, 0, sdata); in hwmp_rann_frame_process()