/Linux-v6.1/include/net/ |
D | cls_cgroup.h | 20 u32 classid; member 27 u32 classid; in task_cls_classid() local 33 classid = container_of(task_css(p, net_cls_cgrp_id), in task_cls_classid() 34 struct cgroup_cls_state, css)->classid; in task_cls_classid() 37 return classid; in task_cls_classid() 42 u32 classid; in sock_update_classid() local 44 classid = task_cls_classid(current); in sock_update_classid() 45 sock_cgroup_set_classid(skcd, classid); in sock_update_classid() 50 return task_cls_state(task)->classid; in __task_get_classid() 55 u32 classid = __task_get_classid(current); in task_get_classid() local [all …]
|
/Linux-v6.1/tools/usb/usbip/libsrc/ |
D | names.c | 39 u_int8_t classid; member 45 u_int8_t classid, subclassid; member 51 u_int8_t classid, subclassid, protocolid; member 105 const char *names_class(u_int8_t classid) in names_class() argument 109 c = classes[hashnum(classid)]; in names_class() 111 if (c->classid == classid) in names_class() 116 const char *names_subclass(u_int8_t classid, u_int8_t subclassid) in names_subclass() argument 120 s = subclasses[hashnum((classid << 8) | subclassid)]; in names_subclass() 122 if (s->classid == classid && s->subclassid == subclassid) in names_subclass() 127 const char *names_protocol(u_int8_t classid, u_int8_t subclassid, in names_protocol() argument [all …]
|
D | names.h | 19 extern const char *names_class(u_int8_t classid); 20 extern const char *names_subclass(u_int8_t classid, u_int8_t subclassid); 21 extern const char *names_protocol(u_int8_t classid, u_int8_t subclassid,
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | htb.c | 16 u32 classid; /* 16-bit, except root. */ member 70 mlx5e_htb_node_create_leaf(struct mlx5e_htb *htb, u16 classid, u16 qid, in mlx5e_htb_node_create_leaf() argument 84 node->classid = classid; in mlx5e_htb_node_create_leaf() 85 hash_add_rcu(htb->qos_tc2node, &node->hnode, classid); in mlx5e_htb_node_create_leaf() 101 node->classid = MLX5E_HTB_CLASSID_ROOT; in mlx5e_htb_node_create_root() 102 hash_add_rcu(htb->qos_tc2node, &node->hnode, node->classid); in mlx5e_htb_node_create_root() 107 static struct mlx5e_qos_node *mlx5e_htb_node_find(struct mlx5e_htb *htb, u32 classid) in mlx5e_htb_node_find() argument 111 hash_for_each_possible(htb->qos_tc2node, node, hnode, classid) { in mlx5e_htb_node_find() 112 if (node->classid == classid) in mlx5e_htb_node_find() 119 static struct mlx5e_qos_node *mlx5e_htb_node_find_rcu(struct mlx5e_htb *htb, u32 classid) in mlx5e_htb_node_find_rcu() argument [all …]
|
D | htb.h | 20 int mlx5e_htb_get_txq_by_classid(struct mlx5e_htb *htb, u16 classid); 25 mlx5e_htb_leaf_alloc_queue(struct mlx5e_htb *htb, u16 classid, 29 mlx5e_htb_leaf_to_inner(struct mlx5e_htb *htb, u16 classid, u16 child_classid, 31 int mlx5e_htb_leaf_del(struct mlx5e_htb *htb, u16 *classid, 34 mlx5e_htb_leaf_del_last(struct mlx5e_htb *htb, u16 classid, bool force, 37 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil,
|
D | selq.c | 177 u16 classid; in mlx5e_select_htb_queue() local 181 classid = TC_H_MIN(skb->priority); in mlx5e_select_htb_queue() 183 classid = selq->htb_defcls; in mlx5e_select_htb_queue() 185 if (!classid) in mlx5e_select_htb_queue() 188 return mlx5e_htb_get_txq_by_classid(priv->htb, classid); in mlx5e_select_htb_queue()
|
/Linux-v6.1/net/core/ |
D | netclassid_cgroup.c | 46 cs->classid = parent->classid; in cgrp_css_online() 63 u32 classid; member 75 sock_cgroup_set_classid(&sock->sk->sk_cgrp_data, ctx->classid); in update_classid_sock() 83 static void update_classid_task(struct task_struct *p, u32 classid) in update_classid_task() argument 86 .classid = classid, in update_classid_task() 105 update_classid_task(p, css_cls_state(css)->classid); in cgrp_attach() 111 return css_cls_state(css)->classid; in read_classid() 121 cs->classid = (u32)value; in write_classid() 125 update_classid_task(p, cs->classid); in write_classid()
|
/Linux-v6.1/Documentation/admin-guide/cgroup-v1/ |
D | net_cls.rst | 6 tag network packets with a class identifier (classid). 13 Creating a net_cls cgroups instance creates a net_cls.classid file. 14 This net_cls.classid value is initialized to 0. 16 You can write hexadecimal values to net_cls.classid; the format for these 19 Reading net_cls.classid yields a decimal result. 26 echo 0x100001 > /sys/fs/cgroup/net_cls/0/net_cls.classid 30 cat /sys/fs/cgroup/net_cls/0/net_cls.classid 36 tc class add dev eth0 parent 10: classid 10:1 htb rate 40mbit
|
/Linux-v6.1/net/sched/ |
D | sch_atm.c | 73 static inline struct atm_flow_data *lookup_flow(struct Qdisc *sch, u32 classid) in lookup_flow() argument 79 if (flow->common.classid == classid) in lookup_flow() 113 static unsigned long atm_tc_find(struct Qdisc *sch, u32 classid) in atm_tc_find() argument 118 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", __func__, sch, p, classid); in atm_tc_find() 119 flow = lookup_flow(sch, classid); in atm_tc_find() 125 unsigned long parent, u32 classid) in atm_tc_bind_filter() argument 130 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", __func__, sch, p, classid); in atm_tc_bind_filter() 131 flow = lookup_flow(sch, classid); in atm_tc_bind_filter() 195 static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, in atm_tc_change() argument 209 "flow %p,opt %p)\n", sch, p, classid, parent, flow, opt); in atm_tc_change() [all …]
|
D | sch_ingress.c | 28 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) in ingress_find() argument 30 return TC_H_MIN(classid) + 1; in ingress_find() 34 unsigned long parent, u32 classid) in ingress_bind_filter() argument 36 return ingress_find(sch, classid); in ingress_bind_filter() 155 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) in clsact_find() argument 157 switch (TC_H_MIN(classid)) { in clsact_find() 160 return TC_H_MIN(classid); in clsact_find() 167 unsigned long parent, u32 classid) in clsact_bind_filter() argument 169 return clsact_find(sch, classid); in clsact_bind_filter()
|
D | sch_drr.c | 39 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) in drr_find_class() argument 44 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class() 54 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in drr_change_class() argument 109 cl->common.classid = classid; in drr_change_class() 112 &pfifo_qdisc_ops, classid, in drr_change_class() 167 static unsigned long drr_search_class(struct Qdisc *sch, u32 classid) in drr_search_class() argument 169 return (unsigned long)drr_find_class(sch, classid); in drr_search_class() 186 u32 classid) in drr_bind_tcf() argument 188 struct drr_class *cl = drr_find_class(sch, classid); in drr_bind_tcf() 211 cl->common.classid, NULL); in drr_graft_class() [all …]
|
D | sch_htb.c | 256 if (res.classid == sch->handle) in htb_classify() 258 cl = htb_find(res.classid, sch); in htb_classify() 294 if (cl->common.classid > c->common.classid) in htb_add_to_id_tree() 476 p->inner.clprio[prio].last_ptr_id = cl->common.classid; in htb_deactivate_prios() 789 if (id > cl->common.classid) { in htb_id_find_next_upper() 791 } else if (id < cl->common.classid) { in htb_id_find_next_upper() 1139 .classid = TC_H_MIN(q->defcls), in htb_init() 1253 tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT; in htb_dump_class() 1254 tcm->tcm_handle = cl->common.classid; in htb_dump_class() 1375 .classid = TC_H_MIN(tcm->tcm_parent), in htb_select_queue() [all …]
|
D | sch_cbq.c | 165 cbq_class_lookup(struct cbq_sched_data *q, u32 classid) in cbq_class_lookup() argument 169 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup() 236 if (TC_H_MAJ(res.classid)) in cbq_classify() 237 cl = cbq_class_lookup(q, res.classid); in cbq_classify() 238 else if ((cl = defmap[res.classid & TC_PRIO_MAX]) == NULL) in cbq_classify() 827 cl->common.classid, cl->quantum); in cbq_normalize_quanta() 878 splitid = split->common.classid; in cbq_change_defmap() 881 if (split == NULL || split->common.classid != splitid) { in cbq_change_defmap() 883 if (split->common.classid == splitid) in cbq_change_defmap() 1111 q->link.common.classid = sch->handle; in cbq_init() [all …]
|
D | sch_dsmark.c | 90 static unsigned long dsmark_find(struct Qdisc *sch, u32 classid) in dsmark_find() argument 92 return TC_H_MIN(classid) + 1; in dsmark_find() 96 unsigned long parent, u32 classid) in dsmark_bind_filter() argument 99 __func__, sch, qdisc_priv(sch), classid); in dsmark_bind_filter() 101 return dsmark_find(sch, classid); in dsmark_bind_filter() 116 static int dsmark_change(struct Qdisc *sch, u32 classid, u32 parent, in dsmark_change() argument 126 __func__, sch, p, classid, parent, *arg); in dsmark_change() 243 pr_debug("result %d class 0x%04x\n", result, res.classid); in dsmark_enqueue() 257 skb->tc_index = TC_H_MIN(res.classid); in dsmark_enqueue()
|
D | cls_rsvp.h | 201 tunnelid = f->res.classid; in rsvp_classify() 438 data->tgenerator = f->res.classid; in tunnel_recycle() 528 n->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); in rsvp_change() 563 f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); in rsvp_change() 574 if (f->res.classid > 255) in rsvp_change() 578 if (f->res.classid == 0 && in rsvp_change() 579 (f->res.classid = gen_tunnel(data)) == 0) in rsvp_change() 710 if (f->res.classid && in rsvp_dump() 711 nla_put_u32(skb, TCA_RSVP_CLASSID, f->res.classid)) in rsvp_dump() 731 static void rsvp_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in rsvp_bind_class() argument [all …]
|
D | cls_flow.c | 301 u32 classid; in flow_classify() local 323 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 325 classid = keys[0]; in flow_classify() 326 classid = (classid & f->mask) ^ f->xor; in flow_classify() 327 classid = (classid >> f->rshift) + f->addend; in flow_classify() 331 classid %= f->divisor; in flow_classify() 334 res->classid = TC_H_MAKE(f->baseclass, f->baseclass + classid); in flow_classify()
|
D | cls_cgroup.c | 29 u32 classid = task_get_classid(skb); in cls_cgroup_classify() local 33 if (!classid) in cls_cgroup_classify() 38 res->classid = classid; in cls_cgroup_classify()
|
D | cls_fw.c | 80 res->classid = id; in fw_classify() 214 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_set_parms() 379 if (!f->res.classid && !tcf_exts_has_actions(&f->exts)) in fw_dump() 386 if (f->res.classid && in fw_dump() 387 nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid)) in fw_dump() 414 static void fw_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in fw_bind_class() argument 419 tc_cls_bind_class(classid, cl, q, &f->res, base); in fw_bind_class()
|
D | sch_hfsc.c | 864 hfsc_find_class(u32 classid, struct Qdisc *sch) in hfsc_find_class() argument 869 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class() 913 hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in hfsc_change_class() argument 957 cl->cl_parent->cl_common.classid != parentid) in hfsc_change_class() 1016 if (classid == 0 || TC_H_MAJ(classid ^ sch->handle) != 0) in hfsc_change_class() 1018 if (hfsc_find_class(classid, sch)) in hfsc_change_class() 1051 cl->cl_common.classid = classid; in hfsc_change_class() 1055 classid, NULL); in hfsc_change_class() 1145 cl = hfsc_find_class(res.classid, sch); in hfsc_classify() 1178 cl->cl_common.classid, NULL); in hfsc_graft_class() [all …]
|
D | cls_bpf.c | 91 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify() 110 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify() 123 res->classid = filter_res; in cls_bpf_classify() 450 prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]); in cls_bpf_set_parms() 599 if (prog->res.classid && in cls_bpf_dump() 600 nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid)) in cls_bpf_dump() 633 static void cls_bpf_bind_class(void *fh, u32 classid, unsigned long cl, in cls_bpf_bind_class() argument 638 tc_cls_bind_class(classid, cl, q, &prog->res, base); in cls_bpf_bind_class()
|
/Linux-v6.1/tools/testing/selftests/net/forwarding/ |
D | skbedit_priority.sh | 117 local classid=$1; shift 124 local pkt0=$(qdisc_parent_stats_get $swp2 $classid .packets) 131 qdisc_parent_stats_get $swp2 $classid .packets) 132 check_err $? "Expected to get 10 packets on class $classid, but got $((pkt1 - pkt0))." 138 log_test "$locus skbedit priority $prio -> classid $classid"
|
/Linux-v6.1/include/linux/ |
D | cgroup-defs.h | 789 u32 classid; /* v1 */ member 808 return READ_ONCE(skcd->classid); in sock_cgroup_classid() 823 u32 classid) in sock_cgroup_set_classid() argument 826 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()
|
/Linux-v6.1/include/uapi/linux/netfilter/ |
D | xt_cgroup.h | 19 __u32 classid; member 34 __u32 classid; member
|
/Linux-v6.1/drivers/gpu/drm/i915/gt/uc/ |
D | intel_guc_capture.h | 24 int intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid, 26 int intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_v1v2.c | 10 static int run_test(int cgroup_fd, int server_fd, bool classid) in run_test() argument 30 if (classid && !ASSERT_OK(join_classid(), "join_classid")) { in run_test()
|