• Home
  • Raw
  • Download

Lines Matching refs:opt

54 	struct tc_sfb_qopt opt;  in sfb_parse_opt()  local
57 memset(&opt, 0, sizeof(opt)); in sfb_parse_opt()
58 opt.rehash_interval = 600*1000; in sfb_parse_opt()
59 opt.warmup_time = 60*1000; in sfb_parse_opt()
60 opt.penalty_rate = 10; in sfb_parse_opt()
61 opt.penalty_burst = 20; in sfb_parse_opt()
62 opt.increment = (SFB_MAX_PROB + 1000) / 2000; in sfb_parse_opt()
63 opt.decrement = (SFB_MAX_PROB + 10000) / 20000; in sfb_parse_opt()
68 if (get_u32(&opt.rehash_interval, *argv, 0)) { in sfb_parse_opt()
74 if (get_u32(&opt.warmup_time, *argv, 0)) { in sfb_parse_opt()
80 if (get_u32(&opt.limit, *argv, 0)) { in sfb_parse_opt()
86 if (get_u32(&opt.max, *argv, 0)) { in sfb_parse_opt()
92 if (get_u32(&opt.bin_size, *argv, 0)) { in sfb_parse_opt()
98 if (get_prob(&opt.increment, *argv)) { in sfb_parse_opt()
104 if (get_prob(&opt.decrement, *argv)) { in sfb_parse_opt()
110 if (get_u32(&opt.penalty_rate, *argv, 0)) { in sfb_parse_opt()
116 if (get_u32(&opt.penalty_burst, *argv, 0)) { in sfb_parse_opt()
128 if (opt.max == 0) { in sfb_parse_opt()
129 if (opt.bin_size >= 1) in sfb_parse_opt()
130 opt.max = (opt.bin_size * 5 + 1) / 4; in sfb_parse_opt()
132 opt.max = 25; in sfb_parse_opt()
134 if (opt.bin_size == 0) in sfb_parse_opt()
135 opt.bin_size = (opt.max * 4 + 3) / 5; in sfb_parse_opt()
139 addattr_l(n, 1024, TCA_SFB_PARMS, &opt, sizeof(opt)); in sfb_parse_opt()
144 static int sfb_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) in sfb_print_opt() argument
149 if (opt == NULL) in sfb_print_opt()
152 parse_rtattr_nested(tb, TCA_SFB_MAX, opt); in sfb_print_opt()