• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:opt

38 	struct tc_red_qopt opt;  in red_parse_opt()  local
48 memset(&opt, 0, sizeof(opt)); in red_parse_opt()
53 if (get_size(&opt.limit, *argv)) { in red_parse_opt()
59 if (get_size(&opt.qth_min, *argv)) { in red_parse_opt()
65 if (get_size(&opt.qth_max, *argv)) { in red_parse_opt()
94 opt.flags |= TC_RED_ECN; in red_parse_opt()
96 opt.flags |= TC_RED_HARDDROP; in red_parse_opt()
98 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt()
100 opt.flags |= TC_RED_ADAPTATIVE; in red_parse_opt()
112 if (!opt.limit || !avpkt) { in red_parse_opt()
120 if (!opt.qth_max) in red_parse_opt()
121 opt.qth_max = opt.qth_min ? opt.qth_min * 3 : opt.limit / 4; in red_parse_opt()
122 if (!opt.qth_min) in red_parse_opt()
123 opt.qth_min = opt.qth_max / 3; in red_parse_opt()
125 burst = (2 * opt.qth_min + opt.qth_max) / (3 * avpkt); in red_parse_opt()
130 if ((parm = tc_red_eval_ewma(opt.qth_min, burst, avpkt)) < 0) { in red_parse_opt()
136 opt.Wlog = parm; in red_parse_opt()
137 if ((parm = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { in red_parse_opt()
141 opt.Plog = parm; in red_parse_opt()
142 if ((parm = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0) { in red_parse_opt()
146 opt.Scell_log = parm; in red_parse_opt()
150 addattr_l(n, 1024, TCA_RED_PARMS, &opt, sizeof(opt)); in red_parse_opt()
158 static int red_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in red_print_opt() argument
167 if (opt == NULL) in red_print_opt()
170 parse_rtattr_nested(tb, TCA_RED_MAX, opt); in red_print_opt()