Lines Matching refs:tca
390 qdisc_create(struct net_device *dev, u32 handle, struct rtattr **tca, int *errp) in qdisc_create() argument
393 struct rtattr *kind = tca[TCA_KIND-1]; in qdisc_create()
400 if (ops==NULL && tca[TCA_KIND-1] != NULL) { in qdisc_create()
454 if (!ops->init || (err = ops->init(sch, tca[TCA_OPTIONS-1])) == 0) { in qdisc_create()
459 if (tca[TCA_RATE-1]) in qdisc_create()
460 qdisc_new_estimator(&sch->stats, tca[TCA_RATE-1]); in qdisc_create()
472 static int qdisc_change(struct Qdisc *sch, struct rtattr **tca) in qdisc_change() argument
474 if (tca[TCA_OPTIONS-1]) { in qdisc_change()
479 err = sch->ops->change(sch, tca[TCA_OPTIONS-1]); in qdisc_change()
484 if (tca[TCA_RATE-1]) { in qdisc_change()
486 qdisc_new_estimator(&sch->stats, tca[TCA_RATE-1]); in qdisc_change()
539 struct rtattr **tca = arg; in tc_get_qdisc() local
571 if (tca[TCA_KIND-1] && rtattr_strcmp(tca[TCA_KIND-1], q->ops->id)) in tc_get_qdisc()
600 struct rtattr **tca = arg; in tc_modify_qdisc() local
637 if (tca[TCA_KIND-1] && rtattr_strcmp(tca[TCA_KIND-1], q->ops->id)) in tc_modify_qdisc()
670 (tca[TCA_KIND-1] && in tc_modify_qdisc()
671 rtattr_strcmp(tca[TCA_KIND-1], q->ops->id)))) in tc_modify_qdisc()
686 if (tca[TCA_KIND-1] && rtattr_strcmp(tca[TCA_KIND-1], q->ops->id)) in tc_modify_qdisc()
688 err = qdisc_change(q, tca); in tc_modify_qdisc()
697 q = qdisc_create(dev, tcm->tcm_parent, tca, &err); in tc_modify_qdisc()
699 q = qdisc_create(dev, tcm->tcm_handle, tca, &err); in tc_modify_qdisc()
849 struct rtattr **tca = arg; in tc_ctl_tclass() local
947 err = cops->change(q, clid, pid, tca, &new_cl); in tc_ctl_tclass()