/kernel/linux/linux-5.10/net/sched/ |
H A 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() 160 qdisc_class_hash_remove(&q->clhash, &cl->common); in drr_delete_class() 287 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk() 288 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_walk() 426 err = qdisc_class_hash_init(&q->clhash); in drr_init_qdisc() 439 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc() 440 hlist_for_each_entry(cl, &q->clhash in drr_reset_qdisc() [all...] |
H A 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 724 qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) qdisc_class_hash_destroy() argument 730 qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) qdisc_class_hash_insert() argument 742 qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) qdisc_class_hash_remove() argument [all...] |
H A D | sch_qfq.c | 183 struct Qdisc_class_hash clhash; member 212 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class() 516 qdisc_class_hash_insert(&q->clhash, &cl->common); in qfq_change_class() 519 qdisc_class_hash_grow(sch, &q->clhash); in qfq_change_class() 551 qdisc_class_hash_remove(&q->clhash, &cl->common); in qfq_delete_class() 669 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk() 670 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_walk() 1442 err = qdisc_class_hash_init(&q->clhash); in qfq_init_qdisc() 1475 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc() 1476 hlist_for_each_entry(cl, &q->clhash in qfq_reset_qdisc() [all...] |
H A 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 in cbq_reset() [all...] |
H A 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() 1081 qdisc_class_hash_insert(&q->clhash, &cl->cl_common); in hfsc_change_class() 1088 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_change_class() 1121 qdisc_class_hash_remove(&q->clhash, &cl->cl_common); in hfsc_delete_class() 1364 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk() 1365 hlist_for_each_entry(cl, &q->clhash.hash[i], in hfsc_walk() 1413 err = qdisc_class_hash_init(&q->clhash); in hfsc_init_qdisc() 1434 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); in hfsc_init_qdisc() 1435 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_init_qdisc() [all...] |
H A D | sch_htb.c | 149 struct Qdisc_class_hash clhash; member 185 clc = qdisc_class_find(&q->clhash, handle); in htb_find() 958 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset() 959 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_reset() 1026 err = qdisc_class_hash_init(&q->clhash); in htb_init() 1235 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy() 1236 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_destroy() 1241 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy() 1242 hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], in htb_destroy() 1246 qdisc_class_hash_destroy(&q->clhash); in htb_destroy() [all...] |
/kernel/linux/linux-6.6/net/sched/ |
H A D | sch_drr.c | 35 struct Qdisc_class_hash clhash; member 43 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class() 130 qdisc_class_hash_insert(&q->clhash, &cl->common); in drr_change_class() 133 qdisc_class_hash_grow(sch, &q->clhash); in drr_change_class() 160 qdisc_class_hash_remove(&q->clhash, &cl->common); in drr_delete_class() 286 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk() 287 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_walk() 418 err = qdisc_class_hash_init(&q->clhash); in drr_init_qdisc() 431 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc() 432 hlist_for_each_entry(cl, &q->clhash in drr_reset_qdisc() [all...] |
H A D | sch_api.c | 685 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) in qdisc_class_hash_grow() argument 694 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow() 696 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow() 702 ohash = clhash->hash; in qdisc_class_hash_grow() 703 osize = clhash->hashsize; in qdisc_class_hash_grow() 712 clhash->hash = nhash; in qdisc_class_hash_grow() 713 clhash->hashsize = nsize; in qdisc_class_hash_grow() 714 clhash->hashmask = nmask; in qdisc_class_hash_grow() 721 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument 735 qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) qdisc_class_hash_destroy() argument 741 qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) qdisc_class_hash_insert() argument 753 qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) qdisc_class_hash_remove() argument [all...] |
H A D | sch_qfq.c | 181 struct Qdisc_class_hash clhash; member 210 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class() 516 qdisc_class_hash_insert(&q->clhash, &cl->common); in qfq_change_class() 519 qdisc_class_hash_grow(sch, &q->clhash); in qfq_change_class() 554 qdisc_class_hash_remove(&q->clhash, &cl->common); in qfq_delete_class() 671 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk() 672 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_walk() 1436 err = qdisc_class_hash_init(&q->clhash); in qfq_init_qdisc() 1469 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc() 1470 hlist_for_each_entry(cl, &q->clhash in qfq_reset_qdisc() [all...] |
H A D | sch_htb.c | 150 struct Qdisc_class_hash clhash; member 191 clc = qdisc_class_find(&q->clhash, handle); in htb_find() 1003 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset() 1004 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_reset() 1109 err = qdisc_class_hash_init(&q->clhash); in htb_init() 1306 for (i = 0; i < q->clhash.hashsize; i++) { in htb_offload_aggregate_stats() 1307 hlist_for_each_entry(c, &q->clhash.hash[i], common.hnode) { in htb_offload_aggregate_stats() 1640 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy() 1641 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_destroy() 1650 for (i = 0; i < q->clhash in htb_destroy() [all...] |
H A D | sch_hfsc.c | 171 struct Qdisc_class_hash clhash; /* class hash */ member 868 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class() 1078 qdisc_class_hash_insert(&q->clhash, &cl->cl_common); in hfsc_change_class() 1085 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_change_class() 1122 qdisc_class_hash_remove(&q->clhash, &cl->cl_common); in hfsc_delete_class() 1365 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk() 1366 hlist_for_each_entry(cl, &q->clhash.hash[i], in hfsc_walk() 1407 err = qdisc_class_hash_init(&q->clhash); in hfsc_init_qdisc() 1429 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); in hfsc_init_qdisc() 1430 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_init_qdisc() [all...] |