/net/sched/ |
D | sch_atm.c | 50 u32 classid; /* x:y type ID */ member 70 static inline struct atm_flow_data *lookup_flow(struct Qdisc *sch, u32 classid) in lookup_flow() argument 76 if (flow->classid == classid) in lookup_flow() 109 static unsigned long atm_tc_get(struct Qdisc *sch, u32 classid) in atm_tc_get() argument 114 pr_debug("atm_tc_get(sch %p,[qdisc %p],classid %x)\n", sch, p, classid); in atm_tc_get() 115 flow = lookup_flow(sch, classid); in atm_tc_get() 123 unsigned long parent, u32 classid) in atm_tc_bind_filter() argument 125 return atm_tc_get(sch, classid); in atm_tc_bind_filter() 185 static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, in atm_tc_change() argument 198 "flow %p,opt %p)\n", sch, p, classid, parent, flow, opt); in atm_tc_change() [all …]
|
D | sch_drr.c | 42 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) in drr_find_class() argument 47 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class() 66 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in drr_change_class() argument 113 cl->common.classid = classid; in drr_change_class() 116 &pfifo_qdisc_ops, classid); in drr_change_class() 171 static unsigned long drr_get_class(struct Qdisc *sch, u32 classid) in drr_get_class() argument 173 struct drr_class *cl = drr_find_class(sch, classid); in drr_get_class() 201 u32 classid) in drr_bind_tcf() argument 203 struct drr_class *cl = drr_find_class(sch, classid); in drr_bind_tcf() 225 &pfifo_qdisc_ops, cl->common.classid); in drr_graft_class() [all …]
|
D | sch_ingress.c | 24 static unsigned long ingress_get(struct Qdisc *sch, u32 classid) in ingress_get() argument 26 return TC_H_MIN(classid) + 1; in ingress_get() 30 unsigned long parent, u32 classid) in ingress_bind_filter() argument 32 return ingress_get(sch, classid); in ingress_bind_filter()
|
D | sch_cbq.c | 178 cbq_class_lookup(struct cbq_sched_data *q, u32 classid) in cbq_class_lookup() argument 182 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup() 249 if (TC_H_MAJ(res.classid)) in cbq_classify() 250 cl = cbq_class_lookup(q, res.classid); in cbq_classify() 251 else if ((cl = defmap[res.classid & TC_PRIO_MAX]) == NULL) in cbq_classify() 1048 cl->common.classid, cl->quantum); in cbq_normalize_quanta() 1099 splitid = split->common.classid; in cbq_change_defmap() 1102 if (split == NULL || split->common.classid != splitid) { in cbq_change_defmap() 1104 if (split->common.classid == splitid) in cbq_change_defmap() 1388 q->link.common.classid = sch->handle; in cbq_init() [all …]
|
D | sch_dsmark.c | 86 static unsigned long dsmark_get(struct Qdisc *sch, u32 classid) in dsmark_get() argument 89 __func__, sch, qdisc_priv(sch), classid); in dsmark_get() 91 return TC_H_MIN(classid) + 1; in dsmark_get() 95 unsigned long parent, u32 classid) in dsmark_bind_filter() argument 97 return dsmark_get(sch, classid); in dsmark_bind_filter() 112 static int dsmark_change(struct Qdisc *sch, u32 classid, u32 parent, in dsmark_change() argument 121 __func__, sch, p, classid, parent, *arg); in dsmark_change() 237 pr_debug("result %d class 0x%04x\n", result, res.classid); in dsmark_enqueue() 250 skb->tc_index = TC_H_MIN(res.classid); in dsmark_enqueue()
|
D | sch_htb.c | 244 if (res.classid == sch->handle) in htb_classify() 246 cl = htb_find(res.classid, sch); in htb_classify() 279 if (cl->common.classid > c->common.classid) in htb_add_to_id_tree() 447 p->un.inner.clprio[prio].last_ptr_id = cl->common.classid; in htb_deactivate_prios() 739 if (id > cl->common.classid) { in htb_id_find_next_upper() 741 } else if (id < cl->common.classid) { in htb_id_find_next_upper() 1105 tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT; in htb_dump_class() 1106 tcm->tcm_handle = cl->common.classid; in htb_dump_class() 1167 cl->common.classid)) == NULL) in htb_graft() 1188 static unsigned long htb_get(struct Qdisc *sch, u32 classid) in htb_get() argument [all …]
|
D | cls_flow.c | 298 u32 classid; in flow_classify() local 320 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 322 classid = keys[0]; in flow_classify() 323 classid = (classid & f->mask) ^ f->xor; in flow_classify() 324 classid = (classid >> f->rshift) + f->addend; in flow_classify() 328 classid %= f->divisor; in flow_classify() 331 res->classid = TC_H_MAKE(f->baseclass, f->baseclass + classid); in flow_classify()
|
D | cls_cgroup.c | 33 u32 classid = task_get_classid(skb); in cls_cgroup_classify() local 35 if (!classid) in cls_cgroup_classify() 40 res->classid = classid; in cls_cgroup_classify()
|
D | cls_bpf.c | 98 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify() 111 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify() 124 res->classid = filter_res; in cls_bpf_classify() 343 prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]); in cls_bpf_modify_existing() 480 if (prog->res.classid && in cls_bpf_dump() 481 nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid)) in cls_bpf_dump()
|
D | sch_hfsc.c | 921 hfsc_find_class(u32 classid, struct Qdisc *sch) in hfsc_find_class() argument 926 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class() 970 hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in hfsc_change_class() argument 1010 cl->cl_parent->cl_common.classid != parentid) in hfsc_change_class() 1057 if (classid == 0 || TC_H_MAJ(classid ^ sch->handle) != 0) in hfsc_change_class() 1059 if (hfsc_find_class(classid, sch)) in hfsc_change_class() 1086 cl->cl_common.classid = classid; in hfsc_change_class() 1091 &pfifo_qdisc_ops, classid); in hfsc_change_class() 1181 cl = hfsc_find_class(res.classid, sch); in hfsc_classify() 1214 cl->cl_common.classid); in hfsc_graft_class() [all …]
|
D | sch_qfq.c | 209 static struct qfq_class *qfq_find_class(struct Qdisc *sch, u32 classid) in qfq_find_class() argument 214 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class() 404 static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in qfq_change_class() argument 478 cl->common.classid = classid; in qfq_change_class() 482 &pfifo_qdisc_ops, classid); in qfq_change_class() 562 static unsigned long qfq_get_class(struct Qdisc *sch, u32 classid) in qfq_get_class() argument 564 struct qfq_class *cl = qfq_find_class(sch, classid); in qfq_get_class() 592 u32 classid) in qfq_bind_tcf() argument 594 struct qfq_class *cl = qfq_find_class(sch, classid); in qfq_bind_tcf() 616 &pfifo_qdisc_ops, cl->common.classid); in qfq_graft_class() [all …]
|
D | cls_rsvp.h | 207 tunnelid = f->res.classid; in rsvp_classify() 430 data->tgenerator = f->res.classid; in tunnel_recycle() 511 n->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); in rsvp_change() 544 f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); in rsvp_change() 555 if (f->res.classid > 255) in rsvp_change() 559 if (f->res.classid == 0 && in rsvp_change() 560 (f->res.classid = gen_tunnel(data)) == 0) in rsvp_change() 696 if (f->res.classid && in rsvp_dump() 697 nla_put_u32(skb, TCA_RSVP_CLASSID, f->res.classid)) in rsvp_dump()
|
D | sch_prio.c | 60 band = res.classid; in prio_classify() 289 static unsigned long prio_get(struct Qdisc *sch, u32 classid) in prio_get() argument 292 unsigned long band = TC_H_MIN(classid); in prio_get() 299 static unsigned long prio_bind(struct Qdisc *sch, unsigned long parent, u32 classid) in prio_bind() argument 301 return prio_get(sch, classid); in prio_bind()
|
D | cls_fw.c | 89 res->classid = id; in fw_classify() 204 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_change_attrs() 376 if (!f->res.classid && !tcf_exts_is_available(&f->exts)) in fw_dump() 383 if (f->res.classid && in fw_dump() 384 nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid)) in fw_dump()
|
D | sch_choke.c | 137 u16 classid; member 148 static inline void choke_set_classid(struct sk_buff *skb, u16 classid) in choke_set_classid() argument 150 choke_skb_cb(skb)->classid = classid; in choke_set_classid() 155 return choke_skb_cb(skb)->classid; in choke_get_classid() 215 choke_set_classid(skb, TC_H_MIN(res.classid)); in choke_classify()
|
D | cls_tcindex.c | 56 return tcf_exts_is_predicative(&r->exts) || r->res.classid; in tcindex_filter_is_set() 96 res->classid = TC_H_MAKE(TC_H_MAJ(tp->q->handle), key); in tcindex_classify() 98 pr_debug("alg 0x%x\n", res->classid); in tcindex_classify() 102 pr_debug("map 0x%x\n", res->classid); in tcindex_classify() 386 cr.res.classid = nla_get_u32(tb[TCA_TCINDEX_CLASSID]); in tcindex_set_parms() 558 nla_put_u32(skb, TCA_TCINDEX_CLASSID, r->res.classid)) in tcindex_dump()
|
D | sch_multiq.c | 316 static unsigned long multiq_get(struct Qdisc *sch, u32 classid) in multiq_get() argument 319 unsigned long band = TC_H_MIN(classid); in multiq_get() 327 u32 classid) in multiq_bind() argument 329 return multiq_get(sch, classid); in multiq_bind()
|
D | cls_basic.c | 147 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); in basic_set_parms() 262 if (f->res.classid && in basic_dump() 263 nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid)) in basic_dump()
|
D | cls_route.c | 201 res->classid = id; in route4_classify() 462 f->res.classid = nla_get_u32(tb[TCA_ROUTE4_CLASSID]); in route4_set_parms() 630 if (f->res.classid && in route4_dump() 631 nla_put_u32(skb, TCA_ROUTE4_CLASSID, f->res.classid)) in route4_dump()
|
D | sch_mq.c | 168 static unsigned long mq_get(struct Qdisc *sch, u32 classid) in mq_get() argument 170 unsigned int ntx = TC_H_MIN(classid); in mq_get()
|
D | sch_sfb.c | 273 *salt = TC_H_MIN(res.classid); in sfb_classify() 625 static unsigned long sfb_get(struct Qdisc *sch, u32 classid) in sfb_get() argument 634 static int sfb_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in sfb_change_class() argument 668 u32 classid) in sfb_bind() argument
|
D | sch_fq_codel.c | 106 if (TC_H_MIN(res.classid) <= q->flows_cnt) in fq_codel_classify() 107 return TC_H_MIN(res.classid); in fq_codel_classify() 522 static unsigned long fq_codel_get(struct Qdisc *sch, u32 classid) in fq_codel_get() argument 528 u32 classid) in fq_codel_bind() argument
|
D | sch_api.c | 312 static struct Qdisc *qdisc_leaf(struct Qdisc *p, u32 classid) in qdisc_leaf() argument 320 cl = cops->get(p, classid); in qdisc_leaf() 675 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow() 714 h = qdisc_class_hash(cl->classid, clhash->hashmask); in qdisc_class_hash_insert() 807 struct sk_buff *skb, struct nlmsghdr *n, u32 classid, in qdisc_graft() argument 849 notify_and_destroy(net, skb, n, classid, in qdisc_graft() 858 notify_and_destroy(net, skb, n, classid, old, new); in qdisc_graft() 868 unsigned long cl = cops->get(parent, classid); in qdisc_graft() 876 notify_and_destroy(net, skb, n, classid, old, new); in qdisc_graft()
|
D | sch_sfq.c | 193 if (TC_H_MIN(res.classid) <= q->divisor) in sfq_classify() 194 return TC_H_MIN(res.classid); in sfq_classify() 822 static unsigned long sfq_get(struct Qdisc *sch, u32 classid) in sfq_get() argument 828 u32 classid) in sfq_bind() argument
|
/net/core/ |
D | netclassid_cgroup.c | 49 cs->classid = parent->classid; in cgrp_css_online() 90 (void *)(unsigned long)css_cls_state(css)->classid); in cgrp_attach() 95 return css_cls_state(css)->classid; in read_classid() 103 cs->classid = (u32)value; in write_classid() 105 update_classid(css, (void *)(unsigned long)cs->classid); in write_classid()
|