Home
last modified time | relevance | path

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

/net/sched/
Dsch_sfq.c116 unsigned int divisor; /* number of slots in hash table */ member
160 return skb_get_hash_perturb(skb, &q->perturbation) & (q->divisor - 1); in sfq_hash()
173 TC_H_MIN(skb->priority) <= q->divisor) in sfq_classify()
194 if (TC_H_MIN(res.classid) <= q->divisor) in sfq_classify()
637 if (ctl->divisor && in sfq_change()
638 (!is_power_of_2(ctl->divisor) || ctl->divisor > 65536)) in sfq_change()
665 if (ctl->divisor) { in sfq_change()
666 q->divisor = ctl->divisor; in sfq_change()
667 q->maxflows = min_t(u32, q->maxflows, q->divisor); in sfq_change()
754 q->divisor = SFQ_DEFAULT_HASH_DIVISOR; in sfq_init()
[all …]
Dcls_u32.c74 unsigned int divisor; member
202 if (ht->divisor) { in u32_classify()
209 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify()
273 if (sel > ht->divisor) in u32_lookup_key()
483 cls_u32.hnode.divisor = h->divisor; in u32_clear_hw_hnode()
501 cls_u32.hnode.divisor = h->divisor; in u32_replace_hw_hnode()
579 for (h = 0; h <= ht->divisor; h++) { in u32_clear_hnode()
927 unsigned int divisor = nla_get_u32(tb[TCA_U32_DIVISOR]); in u32_change() local
929 if (!is_power_of_2(divisor)) { in u32_change()
933 if (divisor-- > 0x100) { in u32_change()
[all …]
Dcls_flow.c53 u32 divisor; member
330 if (f->divisor) in flow_classify()
331 classid %= f->divisor; in flow_classify()
466 fnew->divisor = fold->divisor; in flow_change()
537 fnew->divisor = nla_get_u32(tb[TCA_FLOW_DIVISOR]); in flow_change()
649 if (f->divisor && in flow_dump()
650 nla_put_u32(skb, TCA_FLOW_DIVISOR, f->divisor)) in flow_dump()