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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sched/
H A Dsch_drr.c39 struct Qdisc_class_hash clhash; member in struct:drr_sched
47 clc = qdisc_class_find(&q->clhash, classid);
130 qdisc_class_hash_insert(&q->clhash, &cl->common);
133 qdisc_class_hash_grow(sch, &q->clhash);
157 qdisc_class_hash_remove(&q->clhash, &cl->common);
301 for (i = 0; i < q->clhash.hashsize; i++) {
302 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) {
446 err = qdisc_class_hash_init(&q->clhash);
460 for (i = 0; i < q->clhash.hashsize; i++) {
461 hlist_for_each_entry(cl, n, &q->clhash
[all...]
H A Dsch_api.c536 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) argument
545 if (clhash->hashelems * 4 <= clhash->hashsize * 3)
547 nsize = clhash->hashsize * 2;
553 ohash = clhash->hash;
554 osize = clhash->hashsize;
563 clhash->hash = nhash;
564 clhash->hashsize = nsize;
565 clhash->hashmask = nmask;
572 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) argument
586 qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) argument
592 qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) argument
604 qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, struct Qdisc_class_common *cl) argument
[all...]
H A Dsch_cbq.c100 struct Qdisc_class_hash clhash; /* Hash table of all classes */ member in struct:cbq_sched_data
138 clc = qdisc_class_find(&q->clhash, classid);
996 for (h = 0; h < q->clhash.hashsize; h++) {
997 hlist_for_each_entry(cl, n, &q->clhash.hash[h], common.hnode) {
1034 for (h = 0; h < q->clhash.hashsize; h++) {
1038 hlist_for_each_entry(c, n, &q->clhash.hash[h],
1085 qdisc_class_hash_remove(&q->clhash, &this->common);
1114 qdisc_class_hash_insert(&q->clhash, &this->common);
1173 for (h = 0; h < q->clhash.hashsize; h++) {
1174 hlist_for_each_entry(cl, n, &q->clhash
[all...]
H A Dsch_hfsc.c183 struct Qdisc_class_hash clhash; /* class hash */ member in struct:hfsc_sched
910 clc = qdisc_class_find(&q->clhash, classid);
1080 qdisc_class_hash_insert(&q->clhash, &cl->cl_common);
1088 qdisc_class_hash_grow(sch, &q->clhash);
1121 qdisc_class_hash_remove(&q->clhash, &cl->cl_common);
1381 for (i = 0; i < q->clhash.hashsize; i++) {
1382 hlist_for_each_entry(cl, n, &q->clhash.hash[i],
1426 err = qdisc_class_hash_init(&q->clhash);
1444 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common);
1445 qdisc_class_hash_grow(sch, &q->clhash);
[all...]
H A Dsch_htb.c129 struct Qdisc_class_hash clhash; member in struct:htb_sched
170 clc = qdisc_class_find(&q->clhash, handle);
941 for (i = 0; i < q->clhash.hashsize; i++) {
942 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode) {
1008 err = qdisc_class_hash_init(&q->clhash);
1222 for (i = 0; i < q->clhash.hashsize; i++) {
1223 hlist_for_each_entry(cl, n, &q->clhash.hash[i], common.hnode)
1226 for (i = 0; i < q->clhash.hashsize; i++) {
1227 hlist_for_each_entry_safe(cl, n, next, &q->clhash.hash[i],
1231 qdisc_class_hash_destroy(&q->clhash);
[all...]

Completed in 174 milliseconds