Home
last modified time | relevance | path

Searched refs:tca (Results 1 – 19 of 19) sorted by relevance

/net/sched/
Dsch_api.c776 struct nlattr **tca, int *errp) in qdisc_create() argument
779 struct nlattr *kind = tca[TCA_KIND]; in qdisc_create()
843 if (!ops->init || (err = ops->init(sch, tca[TCA_OPTIONS])) == 0) { in qdisc_create()
844 if (tca[TCA_STAB]) { in qdisc_create()
845 stab = qdisc_get_stab(tca[TCA_STAB]); in qdisc_create()
852 if (tca[TCA_RATE]) { in qdisc_create()
867 root_lock, tca[TCA_RATE]); in qdisc_create()
896 static int qdisc_change(struct Qdisc *sch, struct nlattr **tca) in qdisc_change() argument
901 if (tca[TCA_OPTIONS]) { in qdisc_change()
904 err = sch->ops->change(sch, tca[TCA_OPTIONS]); in qdisc_change()
[all …]
Dcls_fw.c196 struct nlattr **tb, struct nlattr **tca, unsigned long base) in fw_change_attrs() argument
203 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, &fw_ext_map); in fw_change_attrs()
239 struct nlattr **tca, in fw_change() argument
244 struct nlattr *opt = tca[TCA_OPTIONS]; in fw_change()
258 return fw_change_attrs(net, tp, f, tb, tca, base); in fw_change()
285 err = fw_change_attrs(net, tp, f, tb, tca, base); in fw_change()
Dcls_basic.c168 struct nlattr **tca, unsigned long *arg) in basic_change() argument
175 if (tca[TCA_OPTIONS] == NULL) in basic_change()
178 err = nla_parse_nested(tb, TCA_BASIC_MAX, tca[TCA_OPTIONS], in basic_change()
186 return basic_set_parms(net, tp, f, base, tb, tca[TCA_RATE]); in basic_change()
212 err = basic_set_parms(net, tp, f, base, tb, tca[TCA_RATE]); in basic_change()
Dcls_api.c123 struct nlattr *tca[TCA_MAX + 1]; in tc_ctl_tfilter() local
145 err = nlmsg_parse(n, sizeof(*t), tca, TCA_MAX, NULL); in tc_ctl_tfilter()
220 if (tca[TCA_KIND] == NULL || !protocol) in tc_ctl_tfilter()
236 tp_ops = tcf_proto_lookup_ops(tca[TCA_KIND]); in tc_ctl_tfilter()
239 struct nlattr *kind = tca[TCA_KIND]; in tc_ctl_tfilter()
279 } else if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], tp->ops->kind)) in tc_ctl_tfilter()
324 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh); in tc_ctl_tfilter()
Dcls_cgroup.c183 u32 handle, struct nlattr **tca, in cls_cgroup_change() argument
192 if (!tca[TCA_OPTIONS]) in cls_cgroup_change()
213 err = nla_parse_nested(tb, TCA_CGROUP_MAX, tca[TCA_OPTIONS], in cls_cgroup_change()
218 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, in cls_cgroup_change()
Dsch_drr.c66 struct nlattr **tca, unsigned long *arg) in drr_change_class() argument
70 struct nlattr *opt = tca[TCA_OPTIONS]; in drr_change_class()
90 if (tca[TCA_RATE]) { in drr_change_class()
93 tca[TCA_RATE]); in drr_change_class()
118 if (tca[TCA_RATE]) { in drr_change_class()
121 tca[TCA_RATE]); in drr_change_class()
Dcls_tcindex.c338 struct nlattr **tca, unsigned long *arg) in tcindex_change() argument
340 struct nlattr *opt = tca[TCA_OPTIONS]; in tcindex_change()
348 tp, handle, tca, arg, opt, p, r, arg ? *arg : 0L); in tcindex_change()
358 tca[TCA_RATE]); in tcindex_change()
Dcls_route.c434 struct nlattr **tca, in route4_change() argument
440 struct nlattr *opt = tca[TCA_OPTIONS]; in route4_change()
462 tca[TCA_RATE], 0); in route4_change()
485 tca[TCA_RATE], 1); in route4_change()
Dact_api.c988 struct nlattr *tca[TCA_ACT_MAX + 1]; in tc_ctl_action() local
995 ret = nlmsg_parse(n, sizeof(struct tcamsg), tca, TCA_ACT_MAX, NULL); in tc_ctl_action()
999 if (tca[TCA_ACT_TAB] == NULL) { in tc_ctl_action()
1016 ret = tcf_action_add(net, tca[TCA_ACT_TAB], n, portid, ovr); in tc_ctl_action()
1021 ret = tca_action_gd(net, tca[TCA_ACT_TAB], n, in tc_ctl_action()
1025 ret = tca_action_gd(net, tca[TCA_ACT_TAB], n, in tc_ctl_action()
Dsch_qfq.c401 struct nlattr **tca, unsigned long *arg) in qfq_change_class() argument
412 if (tca[TCA_OPTIONS] == NULL) { in qfq_change_class()
417 err = nla_parse_nested(tb, TCA_QFQ_MAX, tca[TCA_OPTIONS], qfq_policy); in qfq_change_class()
456 if (tca[TCA_RATE]) { in qfq_change_class()
459 tca[TCA_RATE]); in qfq_change_class()
481 if (tca[TCA_RATE]) { in qfq_change_class()
484 tca[TCA_RATE]); in qfq_change_class()
Dcls_u32.c549 struct nlattr **tca, in u32_change() argument
556 struct nlattr *opt = tca[TCA_OPTIONS]; in u32_change()
574 tca[TCA_RATE]); in u32_change()
660 err = u32_set_parms(net, tp, base, ht, n, tb, tca[TCA_RATE]); in u32_change()
Dcls_rsvp.h422 struct nlattr **tca, in rsvp_change() argument
429 struct nlattr *opt = tca[TCA_OPTIONS]; in rsvp_change()
443 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, &rsvp_ext_map); in rsvp_change()
Dcls_flow.c356 u32 handle, struct nlattr **tca, in flow_change() argument
361 struct nlattr *opt = tca[TCA_OPTIONS]; in flow_change()
400 err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &e, &flow_ext_map); in flow_change()
Dsch_hfsc.c970 struct nlattr **tca, unsigned long *arg) in hfsc_change_class() argument
975 struct nlattr *opt = tca[TCA_OPTIONS]; in hfsc_change_class()
1016 if (tca[TCA_RATE]) { in hfsc_change_class()
1019 tca[TCA_RATE]); in hfsc_change_class()
1065 if (tca[TCA_RATE]) { in hfsc_change_class()
1068 tca[TCA_RATE]); in hfsc_change_class()
Dsch_dsmark.c113 struct nlattr **tca, unsigned long *arg) in dsmark_change() argument
116 struct nlattr *opt = tca[TCA_OPTIONS]; in dsmark_change()
Dsch_htb.c1308 u32 parentid, struct nlattr **tca, in htb_change_class() argument
1314 struct nlattr *opt = tca[TCA_OPTIONS]; in htb_change_class()
1371 tca[TCA_RATE] ? : &est.nla); in htb_change_class()
1429 if (tca[TCA_RATE]) { in htb_change_class()
1432 tca[TCA_RATE]); in htb_change_class()
Dsch_cbq.c1744 cbq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, in cbq_change_class() argument
1750 struct nlattr *opt = tca[TCA_OPTIONS]; in cbq_change_class()
1779 if (tca[TCA_RATE]) { in cbq_change_class()
1782 tca[TCA_RATE]); in cbq_change_class()
1873 if (tca[TCA_RATE]) { in cbq_change_class()
1876 tca[TCA_RATE]); in cbq_change_class()
Dsch_atm.c186 struct nlattr **tca, unsigned long *arg) in atm_tc_change() argument
191 struct nlattr *opt = tca[TCA_OPTIONS]; in atm_tc_change()
Dsch_sfb.c641 struct nlattr **tca, unsigned long *arg) in sfb_change_class() argument