Home | History | Annotate | Download | only in tc

Lines Matching refs:opt

56 	struct tc_gred_sopt opt;
84 opt.DPs);
88 opt.grio=1;
105 memset(&opt, 0, sizeof(struct tc_gred_sopt));
106 opt.DPs = dps;
107 opt.def_DP = def_dp;
109 DPRINTF("TC_GRED: sending DPs=%d default=%d\n",opt.DPs,opt.def_DP);
113 addattr_l(n, 1024, TCA_GRED_DPS, &opt, sizeof(struct tc_gred_sopt));
123 struct tc_gred_qopt opt;
132 memset(&opt, 0, sizeof(opt));
137 if (get_size(&opt.limit, *argv)) {
151 if (get_size(&opt.qth_min, *argv)) {
158 if (get_size(&opt.qth_max, *argv)) {
165 opt.DP=strtol(*argv, (char **)NULL, 10);
166 DPRINTF ("\n ******* DP =%u\n",opt.DP);
167 if (opt.DP >MAX_DPs) { /* need a better error check */
168 fprintf(stderr, "DP =%u \n",opt.DP);
197 opt.prio=strtol(*argv, (char **)NULL, 10);
224 if (!opt.qth_min || !opt.qth_max || !burst || !opt.limit || !avpkt ||
225 (opt.DP<0)) {
231 if ((wlog = tc_red_eval_ewma(opt.qth_min, burst, avpkt)) < 0) {
238 opt.Wlog = wlog;
239 if ((wlog = tc_red_eval_P(opt.qth_min, opt.qth_max, probability)) < 0) {
243 opt.Plog = wlog;
244 if ((wlog = tc_red_eval_idle_damping(opt.Wlog, avpkt, rate, sbuf)) < 0)
250 opt.Scell_log = wlog;
254 addattr_l(n, 1024, TCA_GRED_PARMS, &opt, sizeof(opt));
260 static int gred_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
271 if (opt == NULL)
274 parse_rtattr_nested(tb, TCA_GRED_STAB, opt);