• Home
  • Raw
  • Download

Lines Matching refs:opt

54 	struct tc_gred_sopt opt;  in init_gred()  local
82 opt.DPs); in init_gred()
86 opt.grio=1; in init_gred()
103 memset(&opt, 0, sizeof(struct tc_gred_sopt)); in init_gred()
104 opt.DPs = dps; in init_gred()
105 opt.def_DP = def_dp; in init_gred()
107 DPRINTF("TC_GRED: sending DPs=%d default=%d\n",opt.DPs,opt.def_DP); in init_gred()
111 addattr_l(n, 1024, TCA_GRED_DPS, &opt, sizeof(struct tc_gred_sopt)); in init_gred()
121 struct tc_gred_qopt opt; in gred_parse_opt() local
130 memset(&opt, 0, sizeof(opt)); in gred_parse_opt()
135 if (get_size(&opt.limit, *argv)) { in gred_parse_opt()
149 if (get_size(&opt.qth_min, *argv)) { in gred_parse_opt()
156 if (get_size(&opt.qth_max, *argv)) { in gred_parse_opt()
163 opt.DP=strtol(*argv, (char **)NULL, 10); in gred_parse_opt()
164 DPRINTF ("\n ******* DP =%u\n",opt.DP); in gred_parse_opt()
165 if (opt.DP >MAX_DPs) { /* need a better error check */ in gred_parse_opt()
166 fprintf(stderr, "DP =%u \n",opt.DP); in gred_parse_opt()
195 opt.prio=strtol(*argv, (char **)NULL, 10); in gred_parse_opt()
219 if (!opt.qth_min || !opt.qth_max || !burst || !opt.limit || !avpkt || in gred_parse_opt()
220 (opt.DP<0)) { in gred_parse_opt()
226 if ((wlog = tc_red_eval_ewma(opt.qth_min, burst, avpkt)) < 0) { in gred_parse_opt()
233 opt.Wlog = wlog; in gred_parse_opt()
234 if ((wlog = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) { in gred_parse_opt()
238 opt.Plog = wlog; in gred_parse_opt()
239 if ((wlog = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0) in gred_parse_opt()
245 opt.Scell_log = wlog; in gred_parse_opt()
249 addattr_l(n, 1024, TCA_GRED_PARMS, &opt, sizeof(opt)); in gred_parse_opt()
255 static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in gred_print_opt() argument
266 if (opt == NULL) in gred_print_opt()
269 parse_rtattr_nested(tb, TCA_GRED_STAB, opt); in gred_print_opt()