Lines Matching refs:handle
259 static struct Qdisc *qdisc_match_from_root(struct Qdisc *root, u32 handle) in qdisc_match_from_root() argument
264 return (root->handle == handle ? root : NULL); in qdisc_match_from_root()
267 root->handle == handle) in qdisc_match_from_root()
270 hash_for_each_possible_rcu(qdisc_dev(root)->qdisc_hash, q, hash, handle, in qdisc_match_from_root()
272 if (q->handle == handle) in qdisc_match_from_root()
282 hash_add_rcu(qdisc_dev(q)->qdisc_hash, &q->hash, q->handle); in qdisc_hash_add()
298 struct Qdisc *qdisc_lookup(struct net_device *dev, u32 handle) in qdisc_lookup() argument
302 if (!handle) in qdisc_lookup()
304 q = qdisc_match_from_root(rtnl_dereference(dev->qdisc), handle); in qdisc_lookup()
311 handle); in qdisc_lookup()
316 struct Qdisc *qdisc_lookup_rcu(struct net_device *dev, u32 handle) in qdisc_lookup_rcu() argument
321 if (!handle) in qdisc_lookup_rcu()
323 q = qdisc_match_from_root(rcu_dereference(dev->qdisc), handle); in qdisc_lookup_rcu()
329 q = qdisc_match_from_root(nq->qdisc_sleeping, handle); in qdisc_lookup_rcu()
598 txt, qdisc->ops->id, qdisc->handle >> 16); in qdisc_warn_nonwc()
875 .handle = new ? new->handle : 0, in qdisc_offload_graft_root()
907 tcm->tcm_handle = q->handle; in tc_fill_qdisc()
1172 struct Qdisc *p, u32 parent, u32 handle, in qdisc_create() argument
1225 if (handle == TC_H_INGRESS) { in qdisc_create()
1232 handle = TC_H_MAKE(TC_H_INGRESS, 0); in qdisc_create()
1234 if (handle == 0) { in qdisc_create()
1235 handle = qdisc_alloc_handle(dev); in qdisc_create()
1236 if (handle == 0) { in qdisc_create()
1246 sch->handle = handle; in qdisc_create()
1481 if (tcm->tcm_handle && q->handle != tcm->tcm_handle) { in tc_get_qdisc()
1503 if (q->handle == 0) { in tc_get_qdisc()
1585 if (q && q->handle == 0) in tc_modify_qdisc()
1588 if (!q || !tcm->tcm_handle || q->handle != tcm->tcm_handle) { in tc_modify_qdisc()
1869 tcm->tcm_parent = q->handle; in tc_fill_tclass()
1870 tcm->tcm_handle = q->handle; in tc_fill_tclass()
2093 qid = rtnl_dereference(dev->qdisc)->handle; in tc_ctl_tclass()
2104 qid = rtnl_dereference(dev->qdisc)->handle; in tc_ctl_tclass()
2197 TC_H_MAJ(tcm->tcm_parent) != q->handle)) { in tc_dump_tclass_qdisc()