Home
last modified time | relevance | path

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

/linux-4.4.14/net/sched/
Dsch_drr.c39 struct Qdisc_class_hash clhash; member
47 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class()
132 qdisc_class_hash_insert(&q->clhash, &cl->common); in drr_change_class()
135 qdisc_class_hash_grow(sch, &q->clhash); in drr_change_class()
159 qdisc_class_hash_remove(&q->clhash, &cl->common); in drr_delete_class()
299 for (i = 0; i < q->clhash.hashsize; i++) { in drr_walk()
300 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_walk()
444 err = qdisc_class_hash_init(&q->clhash); in drr_init_qdisc()
457 for (i = 0; i < q->clhash.hashsize; i++) { in drr_reset_qdisc()
458 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in drr_reset_qdisc()
[all …]
Dsch_api.c651 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) in qdisc_class_hash_grow() argument
660 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
662 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
668 ohash = clhash->hash; in qdisc_class_hash_grow()
669 osize = clhash->hashsize; in qdisc_class_hash_grow()
678 clhash->hash = nhash; in qdisc_class_hash_grow()
679 clhash->hashsize = nsize; in qdisc_class_hash_grow()
680 clhash->hashmask = nmask; in qdisc_class_hash_grow()
687 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument
691 clhash->hash = qdisc_class_hash_alloc(size); in qdisc_class_hash_init()
[all …]
Dsch_hfsc.c178 struct Qdisc_class_hash clhash; /* class hash */ member
926 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class()
1099 qdisc_class_hash_insert(&q->clhash, &cl->cl_common); in hfsc_change_class()
1107 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_change_class()
1140 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, &q->clhash.hash[i], in hfsc_walk()
1442 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_cbq.c145 struct Qdisc_class_hash clhash; /* Hash table of all classes */ member
182 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup()
1036 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_normalize_quanta()
1037 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { in cbq_normalize_quanta()
1076 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_sync_defmap()
1079 hlist_for_each_entry(c, &q->clhash.hash[h], in cbq_sync_defmap()
1127 qdisc_class_hash_remove(&q->clhash, &this->common); in cbq_unlink_class()
1156 qdisc_class_hash_insert(&q->clhash, &this->common); in cbq_link_class()
1214 for (h = 0; h < q->clhash.hashsize; h++) { in cbq_reset()
1215 hlist_for_each_entry(cl, &q->clhash.hash[h], common.hnode) { in cbq_reset()
[all …]
Dsch_qfq.c185 struct Qdisc_class_hash clhash; member
214 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class()
496 qdisc_class_hash_insert(&q->clhash, &cl->common); in qfq_change_class()
499 qdisc_class_hash_grow(sch, &q->clhash); in qfq_change_class()
550 qdisc_class_hash_remove(&q->clhash, &cl->common); in qfq_delete_class()
684 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_walk()
685 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_walk()
1476 err = qdisc_class_hash_init(&q->clhash); in qfq_init_qdisc()
1511 for (i = 0; i < q->clhash.hashsize; i++) { in qfq_reset_qdisc()
1512 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in qfq_reset_qdisc()
[all …]
Dsch_htb.c151 struct Qdisc_class_hash clhash; member
186 clc = qdisc_class_find(&q->clhash, handle); in htb_find()
979 for (i = 0; i < q->clhash.hashsize; i++) { in htb_reset()
980 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) { in htb_reset()
1042 err = qdisc_class_hash_init(&q->clhash); in htb_init()
1254 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1255 hlist_for_each_entry(cl, &q->clhash.hash[i], common.hnode) in htb_destroy()
1258 for (i = 0; i < q->clhash.hashsize; i++) { in htb_destroy()
1259 hlist_for_each_entry_safe(cl, next, &q->clhash.hash[i], in htb_destroy()
1263 qdisc_class_hash_destroy(&q->clhash); in htb_destroy()
[all …]