Home
last modified time | relevance | path

Searched refs:clhash (Results 1 – 5 of 5) sorted by relevance

/net/sched/
Dsch_drr.c38 struct Qdisc_class_hash clhash; member
46 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class()
129 qdisc_class_hash_insert(&q->clhash, &cl->common); in drr_change_class()
132 qdisc_class_hash_grow(sch, &q->clhash); in drr_change_class()
156 qdisc_class_hash_remove(&q->clhash, &cl->common); in drr_delete_class()
295 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
296 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) { in drr_walk()
440 err = qdisc_class_hash_init(&q->clhash); in drr_init_qdisc()
454 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
455 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) { in drr_reset_qdisc()
[all …]
Dsch_api.c516 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) in qdisc_class_hash_grow() argument
525 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
527 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
533 ohash = clhash->hash; in qdisc_class_hash_grow()
534 osize = clhash->hashsize; in qdisc_class_hash_grow()
543 clhash->hash = nhash; in qdisc_class_hash_grow()
544 clhash->hashsize = nsize; in qdisc_class_hash_grow()
545 clhash->hashmask = nmask; in qdisc_class_hash_grow()
552 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument
556 clhash->hash = qdisc_class_hash_alloc(size); in qdisc_class_hash_init()
[all …]
Dsch_hfsc.c183 struct Qdisc_class_hash clhash; /* class hash */ member
930 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class()
1100 qdisc_class_hash_insert(&q->clhash, &cl->cl_common); in hfsc_change_class()
1108 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_change_class()
1141 qdisc_class_hash_remove(&q->clhash, &cl->cl_common); in hfsc_delete_class()
1396 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1397 hlist_for_each_entry(cl, n, &q->clhash.hash[i], in hfsc_walk()
1441 err = qdisc_class_hash_init(&q->clhash); in hfsc_init_qdisc()
1459 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); in hfsc_init_qdisc()
1460 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_init_qdisc()
[all …]
Dsch_htb.c129 struct Qdisc_class_hash clhash; member
166 clc = qdisc_class_find(&q->clhash, handle); in htb_find()
933 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
934 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) { in htb_reset()
992 err = qdisc_class_hash_init(&q->clhash); in htb_init()
1206 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1207 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) in htb_destroy()
1210 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1211 hlist_for_each_entry_safe(cl, n, next, &q->clhash.hash[i], in htb_destroy()
1215 qdisc_class_hash_destroy(&q->clhash); in htb_destroy()
[all …]
Dsch_cbq.c146 struct Qdisc_class_hash clhash; /* Hash table of all classes */ member
184 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup()
1048 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_normalize_quanta()
1049 hlist_for_each_entry(cl, n, &q->clhash.hash[h], common.hnode) { in cbq_normalize_quanta()
1086 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_sync_defmap()
1090 hlist_for_each_entry(c, n, &q->clhash.hash[h], in cbq_sync_defmap()
1137 qdisc_class_hash_remove(&q->clhash, &this->common); in cbq_unlink_class()
1166 qdisc_class_hash_insert(&q->clhash, &this->common); in cbq_link_class()
1225 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_reset()
1226 hlist_for_each_entry(cl, n, &q->clhash.hash[h], common.hnode) { in cbq_reset()
[all …]