Lines Matching refs:handle
261 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument
266 return (root->handle == handle ? root : NULL); in qdisc_match_from_root()
269 root->handle == handle) in qdisc_match_from_root()
272 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle, in qdisc_match_from_root()
274 if (q->handle == handle) in qdisc_match_from_root()
284 hash_add_rcu(qdisc_dev(q)->qdisc_hash, &q->hash, q->handle); in qdisc_hash_add()
300 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup() argument
304 if (!handle) in qdisc_lookup()
306 q = qdisc_match_from_root(rtnl_dereference(dev->qdisc), handle); in qdisc_lookup()
313 handle); in qdisc_lookup()
318 struct Qdisc *qdisc_lookup_rcu(struct net_device *dev, u32 handle) in qdisc_lookup_rcu() argument
323 if (!handle) in qdisc_lookup_rcu()
325 q = qdisc_match_from_root(rcu_dereference(dev->qdisc), handle); in qdisc_lookup_rcu()
332 handle); in qdisc_lookup_rcu()
601 txt, qdisc->ops->id, qdisc->handle >> 16); in qdisc_warn_nonwc()
902 .handle = new ? new->handle : 0, in qdisc_offload_graft_root()
935 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
1230 u32 parent, u32 handle, in qdisc_create() argument
1283 if (handle == TC_H_INGRESS) { in qdisc_create()
1290 handle = TC_H_MAKE(TC_H_INGRESS, 0); in qdisc_create()
1292 if (handle == 0) { in qdisc_create()
1293 handle = qdisc_alloc_handle(dev); in qdisc_create()
1294 if (handle == 0) { in qdisc_create()
1304 sch->handle = handle; in qdisc_create()
1521 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1543 if (q->handle == 0) { in tc_get_qdisc()
1622 if (q && q->handle == 0) in tc_modify_qdisc()
1625 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1906 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1907 tcm->tcm_handle = q->handle; in tc_fill_tclass()
2131 qid = rtnl_dereference(dev->qdisc)->handle; in tc_ctl_tclass()
2142 qid = rtnl_dereference(dev->qdisc)->handle; in tc_ctl_tclass()
2235 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()