Lines Matching refs:root
263 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument
267 if (!qdisc_dev(root)) in qdisc_match_from_root()
268 return (root->handle == handle ? root : NULL); in qdisc_match_from_root()
270 if (!(root->flags & TCQ_F_BUILTIN) && in qdisc_match_from_root()
271 root->handle == handle) in qdisc_match_from_root()
272 return root; in qdisc_match_from_root()
274 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle, in qdisc_match_from_root()
1818 static int tc_dump_qdisc_root(struct Qdisc *root, struct sk_buff *skb, in tc_dump_qdisc_root() argument
1827 if (!root) in tc_dump_qdisc_root()
1830 q = root; in tc_dump_qdisc_root()
1848 if (!qdisc_dev(root) || !recur) in tc_dump_qdisc_root()
1851 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { in tc_dump_qdisc_root()
2355 static int tc_dump_tclass_root(struct Qdisc *root, struct sk_buff *skb, in tc_dump_tclass_root() argument
2362 if (!root) in tc_dump_tclass_root()
2365 if (tc_dump_tclass_qdisc(root, skb, tcm, cb, t_p, s_t) < 0) in tc_dump_tclass_root()
2368 if (!qdisc_dev(root) || !recur) in tc_dump_tclass_root()
2372 q = qdisc_match_from_root(root, TC_H_MAJ(tcm->tcm_parent)); in tc_dump_tclass_root()
2373 if (q && q != root && in tc_dump_tclass_root()
2378 hash_for_each(qdisc_dev(root)->qdisc_hash, b, q, hash) { in tc_dump_tclass_root()