Lines Matching defs:root
257 * (root qdisc, all its children, children of children etc.)
261 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle)
265 if (!qdisc_dev(root))
266 return (root->handle == handle ? root : NULL);
268 if (!(root->flags & TCQ_F_BUILTIN) &&
269 root->handle == handle)
270 return root;
272 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle,
1334 NL_SET_ERR_MSG(extack, "Cannot attach rate estimator to a multi-queue root qdisc");
1768 static int tc_dump_qdisc_root(struct Qdisc *root, struct sk_buff *skb,
1777 if (!root)
1780 q = root;
1792 /* If dumping singletons, there is no qdisc_dev(root) and the singleton
1798 if (!qdisc_dev(root) || !recur)
1801 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) {
2098 parent == TC_H_ROOT - class is root, which has no parent.
2099 parent == X:0 - parent is root class.
2106 handle == X:0 - root class.
2249 static int tc_dump_tclass_root(struct Qdisc *root, struct sk_buff *skb,
2256 if (!root)
2259 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0)
2262 if (!qdisc_dev(root) || !recur)
2266 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent));
2267 if (q && q != root &&
2272 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) {