Searched refs:clhash (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.15/net/sched/ |
D | sch_drr.c | 36 struct Qdisc_class_hash clhash; member 44 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class() 133 qdisc_class_hash_insert(&q->clhash, &cl->common); in drr_change_class() 136 qdisc_class_hash_grow(sch, &q->clhash); in drr_change_class() 161 qdisc_class_hash_remove(&q->clhash, &cl->common); in drr_delete_class() 288 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk() 289 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_walk() 427 err = qdisc_class_hash_init(&q->clhash); in drr_init_qdisc() 440 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc() 441 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_reset_qdisc() [all …]
|
D | sch_cbq.c | 133 struct Qdisc_class_hash clhash; /* Hash table of all classes */ member 170 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup() 892 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_normalize_quanta() 893 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { in cbq_normalize_quanta() 932 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_sync_defmap() 935 hlist_for_each_entry(c, &q->clhash.hash[h], in cbq_sync_defmap() 983 qdisc_class_hash_remove(&q->clhash, &this->common); in cbq_unlink_class() 1012 qdisc_class_hash_insert(&q->clhash, &this->common); in cbq_link_class() 1045 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_reset() 1046 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { in cbq_reset() [all …]
|
D | sch_hfsc.c | 172 struct Qdisc_class_hash clhash; /* class hash */ member 869 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class() 1067 qdisc_class_hash_insert(&q->clhash, &cl->cl_common); in hfsc_change_class() 1074 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_change_class() 1108 qdisc_class_hash_remove(&q->clhash, &cl->cl_common); in hfsc_delete_class() 1351 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk() 1352 hlist_for_each_entry(cl, &q->clhash.hash[i], in hfsc_walk() 1400 err = qdisc_class_hash_init(&q->clhash); in hfsc_init_qdisc() 1421 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); in hfsc_init_qdisc() 1422 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_init_qdisc() [all …]
|
D | sch_api.c | 674 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) in qdisc_class_hash_grow() argument 683 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow() 685 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow() 691 ohash = clhash->hash; in qdisc_class_hash_grow() 692 osize = clhash->hashsize; in qdisc_class_hash_grow() 701 clhash->hash = nhash; in qdisc_class_hash_grow() 702 clhash->hashsize = nsize; in qdisc_class_hash_grow() 703 clhash->hashmask = nmask; in qdisc_class_hash_grow() 710 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument 714 clhash->hash = qdisc_class_hash_alloc(size); in qdisc_class_hash_init() [all …]
|
D | sch_htb.c | 151 struct Qdisc_class_hash clhash; member 192 clc = qdisc_class_find(&q->clhash, handle); in htb_find() 997 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset() 998 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_reset() 1101 err = qdisc_class_hash_init(&q->clhash); in htb_init() 1159 qdisc_class_hash_destroy(&q->clhash); in htb_init() 1162 q->clhash.hash = NULL; in htb_init() 1163 q->clhash.hashsize = 0; in htb_init() 1316 for (i = 0; i < q->clhash.hashsize; i++) { in htb_offload_aggregate_stats() 1317 hlist_for_each_entry(c, &q->clhash.hash[i], common.hnode) { in htb_offload_aggregate_stats() [all …]
|
D | sch_qfq.c | 182 struct Qdisc_class_hash clhash; member 211 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class() 506 qdisc_class_hash_insert(&q->clhash, &cl->common); in qfq_change_class() 509 qdisc_class_hash_grow(sch, &q->clhash); in qfq_change_class() 542 qdisc_class_hash_remove(&q->clhash, &cl->common); in qfq_delete_class() 660 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk() 661 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_walk() 1421 err = qdisc_class_hash_init(&q->clhash); in qfq_init_qdisc() 1456 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc() 1457 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_reset_qdisc() [all …]
|