Lines Matching defs:root
255 * (root qdisc, all its children, children of children etc.)
259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle)
263 if (!qdisc_dev(root))
264 return (root->handle == handle ? root : NULL);
266 if (!(root->flags & TCQ_F_BUILTIN) &&
267 root->handle == handle)
268 return root;
270 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle,
1282 NL_SET_ERR_MSG(extack, "Cannot attach rate estimator to a multi-queue root qdisc");
1737 static int tc_dump_qdisc_root(struct Qdisc *root, struct sk_buff *skb,
1746 if (!root)
1749 q = root;
1761 /* If dumping singletons, there is no qdisc_dev(root) and the singleton
1767 if (!qdisc_dev(root) || !recur)
1770 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) {
2071 parent == TC_H_ROOT - class is root, which has no parent.
2072 parent == X:0 - parent is root class.
2079 handle == X:0 - root class.
2222 static int tc_dump_tclass_root(struct Qdisc *root, struct sk_buff *skb,
2229 if (!root)
2232 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0)
2235 if (!qdisc_dev(root) || !recur)
2239 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent));
2240 if (q && q != root &&
2245 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) {