Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dsch_drr.c35 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.hash[i], common.hnode) { in drr_reset_qdisc()
[all …]
H A Dsch_hfsc.c171 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()
1366 for (i = 0; i < q->clhash.hashsize; i++) { in hfsc_walk()
1367 hlist_for_each_entry(cl, &q->clhash.hash[i], in hfsc_walk()
1408 err = qdisc_class_hash_init(&q->clhash); in hfsc_init_qdisc()
1430 qdisc_class_hash_insert(&q->clhash, &q->root.cl_common); in hfsc_init_qdisc()
1431 qdisc_class_hash_grow(sch, &q->clhash); in hfsc_init_qdisc()
[all …]
H A Dsch_api.c684 void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) in qdisc_class_hash_grow() argument
693 if (clhash->hashelems * 4 <= clhash->hashsize * 3) in qdisc_class_hash_grow()
695 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
701 ohash = clhash->hash; in qdisc_class_hash_grow()
702 osize = clhash->hashsize; in qdisc_class_hash_grow()
711 clhash->hash = nhash; in qdisc_class_hash_grow()
712 clhash->hashsize = nsize; in qdisc_class_hash_grow()
713 clhash->hashmask = nmask; in qdisc_class_hash_grow()
720 int qdisc_class_hash_init(struct Qdisc_class_hash *clhash) in qdisc_class_hash_init() argument
724 clhash->hash = qdisc_class_hash_alloc(size); in qdisc_class_hash_init()
[all …]