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