Lines Matching refs:tca

1930 	struct nlattr *tca[TCA_MAX + 1];  in tc_new_tfilter()  local
1955 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_new_tfilter()
1988 if (tcf_proto_check_kind(tca[TCA_KIND], name)) { in tc_new_tfilter()
2016 chain_index = tca[TCA_CHAIN] ? nla_get_u32(tca[TCA_CHAIN]) : 0; in tc_new_tfilter()
2048 if (tca[TCA_KIND] == NULL || !protocol) { in tc_new_tfilter()
2065 tp_new = tcf_proto_create(nla_data(tca[TCA_KIND]), in tc_new_tfilter()
2084 if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], tp->ops->kind)) { in tc_new_tfilter()
2111 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh, in tc_new_tfilter()
2157 struct nlattr *tca[TCA_MAX + 1]; in tc_del_tfilter() local
2177 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_del_tfilter()
2187 if (prio == 0 && (protocol || t->tcm_handle || tca[TCA_KIND])) { in tc_del_tfilter()
2198 if (tcf_proto_check_kind(tca[TCA_KIND], name)) { in tc_del_tfilter()
2225 chain_index = tca[TCA_CHAIN] ? nla_get_u32(tca[TCA_CHAIN]) : 0; in tc_del_tfilter()
2260 } else if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], tp->ops->kind)) { in tc_del_tfilter()
2317 struct nlattr *tca[TCA_MAX + 1]; in tc_get_tfilter() local
2334 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_get_tfilter()
2355 if (tcf_proto_check_kind(tca[TCA_KIND], name)) { in tc_get_tfilter()
2381 chain_index = tca[TCA_CHAIN] ? nla_get_u32(tca[TCA_CHAIN]) : 0; in tc_get_tfilter()
2402 } else if (tca[TCA_KIND] && nla_strcmp(tca[TCA_KIND], tp->ops->kind)) { in tc_get_tfilter()
2520 struct nlattr *tca[TCA_MAX + 1]; in tc_dump_tfilter() local
2532 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_tfilter()
2591 if (tca[TCA_CHAIN] && in tc_dump_tfilter()
2592 nla_get_u32(tca[TCA_CHAIN]) != chain->index) in tc_dump_tfilter()
2720 struct nlattr **tca, in tc_chain_tmplt_add() argument
2727 if (!tca[TCA_KIND]) in tc_chain_tmplt_add()
2730 ops = tcf_proto_lookup_ops(nla_data(tca[TCA_KIND]), true, extack); in tc_chain_tmplt_add()
2738 tmplt_priv = ops->tmplt_create(net, chain, tca, extack); in tc_chain_tmplt_add()
2765 struct nlattr *tca[TCA_MAX + 1]; in tc_ctl_chain() local
2780 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_ctl_chain()
2794 chain_index = tca[TCA_CHAIN] ? nla_get_u32(tca[TCA_CHAIN]) : 0; in tc_ctl_chain()
2850 err = tc_chain_tmplt_add(chain, net, tca, extack); in tc_ctl_chain()
2899 struct nlattr *tca[TCA_MAX + 1]; in tc_dump_chain() local
2912 err = nlmsg_parse_deprecated(cb->nlh, sizeof(*tcm), tca, TCA_MAX, in tc_dump_chain()
2968 if ((tca[TCA_CHAIN] && in tc_dump_chain()
2969 nla_get_u32(tca[TCA_CHAIN]) != chain->index)) in tc_dump_chain()