Lines Matching full:pi1
201 * Compare the estimated service time of 2 paths, pi1 and pi2,
205 * < 0 : pi1 is better
206 * 0 : no difference between pi1 and pi2
215 static int st_compare_load(struct path_info *pi1, struct path_info *pi2, in st_compare_load() argument
220 sz1 = atomic_read(&pi1->in_flight_size); in st_compare_load()
226 if (pi1->relative_throughput == pi2->relative_throughput) in st_compare_load()
234 !pi1->relative_throughput || !pi2->relative_throughput) in st_compare_load()
235 return pi2->relative_throughput - pi1->relative_throughput; in st_compare_load()
239 * Service time using pi1: in st_compare_load()
240 * st1 = (sz1 + incoming) / pi1->relative_throughput in st_compare_load()
248 * (sz1 + incoming) / pi1->relative_throughput < in st_compare_load()
251 * (sz2 + incoming) * pi1->relative_throughput in st_compare_load()
267 st2 = sz2 * pi1->relative_throughput; in st_compare_load()
274 return pi2->relative_throughput - pi1->relative_throughput; in st_compare_load()