Lines Matching refs:t
232 const struct tcf_proto_ops *t, *res = NULL; in __tcf_proto_lookup_ops() local
236 list_for_each_entry(t, &tcf_proto_base, head) { in __tcf_proto_lookup_ops()
237 if (strcmp(kind, t->kind) == 0) { in __tcf_proto_lookup_ops()
238 if (try_module_get(t->owner)) in __tcf_proto_lookup_ops()
239 res = t; in __tcf_proto_lookup_ops()
282 struct tcf_proto_ops *t; in register_tcf_proto_ops() local
286 list_for_each_entry(t, &tcf_proto_base, head) in register_tcf_proto_ops()
287 if (!strcmp(ops->kind, t->kind)) in register_tcf_proto_ops()
302 struct tcf_proto_ops *t; in unregister_tcf_proto_ops() local
312 list_for_each_entry(t, &tcf_proto_base, head) { in unregister_tcf_proto_ops()
313 if (t == ops) { in unregister_tcf_proto_ops()
314 list_del(&t->head); in unregister_tcf_proto_ops()
2130 struct tcmsg *t; in tc_new_tfilter() local
2151 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_new_tfilter()
2156 t = nlmsg_data(n); in tc_new_tfilter()
2157 protocol = TC_H_MIN(t->tcm_info); in tc_new_tfilter()
2158 prio = TC_H_MAJ(t->tcm_info); in tc_new_tfilter()
2160 parent = t->tcm_parent; in tc_new_tfilter()
2183 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_new_tfilter()
2204 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_new_tfilter()
2208 block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index, in tc_new_tfilter()
2289 fh = tp->ops->get(tp, t->tcm_handle); in tc_new_tfilter()
2317 err = tp->ops->change(net, skb, tp, cl, t->tcm_handle, tca, &fh, in tc_new_tfilter()
2364 struct tcmsg *t; in tc_del_tfilter() local
2379 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_del_tfilter()
2384 t = nlmsg_data(n); in tc_del_tfilter()
2385 protocol = TC_H_MIN(t->tcm_info); in tc_del_tfilter()
2386 prio = TC_H_MAJ(t->tcm_info); in tc_del_tfilter()
2387 parent = t->tcm_parent; in tc_del_tfilter()
2389 if (prio == 0 && (protocol || t->tcm_handle || tca[TCA_KIND])) { in tc_del_tfilter()
2396 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_del_tfilter()
2416 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_del_tfilter()
2420 block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index, in tc_del_tfilter()
2466 } else if (t->tcm_handle == 0) { in tc_del_tfilter()
2479 fh = tp->ops->get(tp, t->tcm_handle); in tc_del_tfilter()
2521 struct tcmsg *t; in tc_get_tfilter() local
2536 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_get_tfilter()
2541 t = nlmsg_data(n); in tc_get_tfilter()
2542 protocol = TC_H_MIN(t->tcm_info); in tc_get_tfilter()
2543 prio = TC_H_MAJ(t->tcm_info); in tc_get_tfilter()
2544 parent = t->tcm_parent; in tc_get_tfilter()
2553 err = __tcf_qdisc_find(net, &q, &parent, t->tcm_ifindex, false, extack); in tc_get_tfilter()
2572 err = __tcf_qdisc_cl_find(q, parent, &cl, t->tcm_ifindex, extack); in tc_get_tfilter()
2576 block = __tcf_block_find(net, q, cl, t->tcm_ifindex, t->tcm_block_index, in tc_get_tfilter()
2610 fh = tp->ops->get(tp, t->tcm_handle); in tc_get_tfilter()
2994 struct tcmsg *t; in tc_ctl_chain() local
3005 err = nlmsg_parse_deprecated(n, sizeof(*t), tca, TCA_MAX, in tc_ctl_chain()
3010 t = nlmsg_data(n); in tc_ctl_chain()
3011 parent = t->tcm_parent; in tc_ctl_chain()
3015 t->tcm_ifindex, t->tcm_block_index, extack); in tc_ctl_chain()