Lines Matching refs:opt
300 static int tbf_change(struct Qdisc* sch, struct rtattr *opt) in tbf_change() argument
311 if (rtattr_parse(tb, TCA_TBF_PTAB, RTA_DATA(opt), RTA_PAYLOAD(opt)) || in tbf_change()
367 static int tbf_init(struct Qdisc* sch, struct rtattr *opt) in tbf_init() argument
372 if (opt == NULL) in tbf_init()
384 if ((err = tbf_change(sch, opt)) != 0) { in tbf_init()
412 struct tc_tbf_qopt opt; in tbf_dump() local
417 opt.limit = q->limit; in tbf_dump()
418 opt.rate = q->R_tab->rate; in tbf_dump()
420 opt.peakrate = q->P_tab->rate; in tbf_dump()
422 memset(&opt.peakrate, 0, sizeof(opt.peakrate)); in tbf_dump()
423 opt.mtu = q->mtu; in tbf_dump()
424 opt.buffer = q->buffer; in tbf_dump()
425 RTA_PUT(skb, TCA_TBF_PARMS, sizeof(opt), &opt); in tbf_dump()