Lines Matching refs:opt
36 struct tc_red_qopt opt; in red_parse_opt() local
46 memset(&opt, 0, sizeof(opt)); in red_parse_opt()
51 if (get_size(&opt.limit, *argv)) { in red_parse_opt()
57 if (get_size(&opt.qth_min, *argv)) { in red_parse_opt()
63 if (get_size(&opt.qth_max, *argv)) { in red_parse_opt()
107 if (!opt.qth_min || !opt.qth_max || !burst || !opt.limit || !avpkt) { in red_parse_opt()
112 if ((wlog = tc_red_eval_ewma(opt.qth_min, burst, avpkt)) < 0) { in red_parse_opt()
118 opt.Wlog = wlog; in red_parse_opt()
119 if ((wlog = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { in red_parse_opt()
123 opt.Plog = wlog; in red_parse_opt()
124 if ((wlog = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0) { in red_parse_opt()
128 opt.Scell_log = wlog; in red_parse_opt()
131 opt.flags |= TC_RED_ECN; in red_parse_opt()
140 addattr_l(n, 1024, TCA_RED_PARMS, &opt, sizeof(opt)); in red_parse_opt()
146 static int red_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in red_print_opt() argument
154 if (opt == NULL) in red_print_opt()
157 parse_rtattr_nested(tb, TCA_RED_STAB, opt); in red_print_opt()