Lines Matching refs:drop_prob

193 	double drop_prob = 0.0;  in calc_drop_prob()  local
196 drop_prob = 0.0; in calc_drop_prob()
198 drop_prob = (1.0 / (double)maxp_inv) in calc_drop_prob()
202 drop_prob = 1.0; in calc_drop_prob()
204 return drop_prob; in calc_drop_prob()
210 static int check_drop_rate(double *diff, double drop_rate, double drop_prob, double tolerance) in check_drop_rate() argument
215 abs_diff = fabs(drop_rate - drop_prob); in check_drop_rate()
219 *diff = (abs_diff / drop_prob) * 100.0; in check_drop_rate()
451 double drop_prob = 0.0; in func_test1() local
493 drop_prob = calc_drop_prob(tcfg->tconfig->min_th, tcfg->tconfig->max_th, in func_test1()
495 if (!check_drop_rate(&diff, drop_rate, drop_prob, (double)tcfg->tqueue->drop_tolerance)) in func_test1()
506 drop_prob * 100.0, drop_rate * 100.0, diff, in func_test1()
586 double drop_prob = 0.0; in func_test2() local
604 drop_prob = calc_drop_prob(tcfg->tconfig->min_th, tcfg->tconfig->max_th, in func_test2()
606 if (!check_drop_rate(&diff, drop_rate, drop_prob, (double)tcfg->tqueue->drop_tolerance)) in func_test2()
617 drop_prob * 100.0, drop_rate * 100.0, diff, in func_test2()
984 double drop_prob = 0.0; in func_test5() local
1003 drop_prob = calc_drop_prob(tcfg->tconfig->min_th, tcfg->tconfig->max_th, in func_test5()
1006 if (!check_drop_rate(&diff, drop_rate, drop_prob, (double)tcfg->tqueue->drop_tolerance)) in func_test5()
1012 drop_prob * 100.0, drop_rate * 100.0, in func_test5()
1595 double drop_prob = 0.0; in ovfl_test1() local
1654 drop_prob = calc_drop_prob(tcfg->tconfig->min_th, in ovfl_test1()
1658 if (!check_drop_rate(&diff, drop_rate, drop_prob, (double)tcfg->tqueue->drop_tolerance)) in ovfl_test1()
1667 drop_prob * 100.0, drop_rate * 100.0); in ovfl_test1()