/linux/include/net/ |
H A 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/tools/usb/usbip/libsrc/ |
H A 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 …]
|
H A 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A 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 …]
|
H A 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,
|
H A D | selq.c | 179 u16 classid; in mlx5e_select_htb_queue() local 183 classid = TC_H_MIN(skb->priority); in mlx5e_select_htb_queue() 185 classid = selq->htb_defcls; in mlx5e_select_htb_queue() 187 if (!classid) in mlx5e_select_htb_queue() 190 return mlx5e_htb_get_txq_by_classid(priv->htb, classid); in mlx5e_select_htb_queue()
|
H A D | qos.c | 424 res = mlx5e_htb_leaf_alloc_queue(htb, htb_qopt->classid, htb_qopt->parent_classid, in mlx5e_htb_setup_tc() 431 return mlx5e_htb_leaf_to_inner(htb, htb_qopt->parent_classid, htb_qopt->classid, in mlx5e_htb_setup_tc() 434 return mlx5e_htb_leaf_del(htb, &htb_qopt->classid, htb_qopt->extack); in mlx5e_htb_setup_tc() 437 return mlx5e_htb_leaf_del_last(htb, htb_qopt->classid, in mlx5e_htb_setup_tc() 441 return mlx5e_htb_node_modify(htb, htb_qopt->classid, htb_qopt->rate, htb_qopt->ceil, in mlx5e_htb_setup_tc() 444 res = mlx5e_htb_get_txq_by_classid(htb, htb_qopt->classid); in mlx5e_htb_setup_tc()
|
/linux/net/core/ |
H A 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() 111 update_classid_task(p, css_cls_state(css)->classid); in cgrp_attach() 117 return css_cls_state(css)->classid; in read_classid() 127 cs->classid = (u32)value; in write_classid() 131 update_classid_task(p, cs->classid); in write_classid()
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A 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/net/sched/ |
H A D | sch_drr.c | 38 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) in drr_find_class() argument 43 clc = qdisc_class_find(&q->clhash, classid); in drr_find_class() 53 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in drr_change_class() argument 108 cl->common.classid = classid; in drr_change_class() 111 &pfifo_qdisc_ops, classid, in drr_change_class() 168 static unsigned long drr_search_class(struct Qdisc *sch, u32 classid) in drr_search_class() argument 170 return (unsigned long)drr_find_class(sch, classid); in drr_search_class() 187 u32 classid) in drr_bind_tcf() argument 189 struct drr_class *cl = drr_find_class(sch, classid); in drr_bind_tcf() 212 cl->common.classid, NULL); in drr_graft_class() [all …]
|
H A D | sch_ingress.c | 29 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) in ingress_find() argument 31 return TC_H_MIN(classid) + 1; in ingress_find() 35 unsigned long parent, u32 classid) in ingress_bind_filter() argument 37 return ingress_find(sch, classid); in ingress_bind_filter() 182 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) in clsact_find() argument 184 switch (TC_H_MIN(classid)) { in clsact_find() 187 return TC_H_MIN(classid); in clsact_find() 194 unsigned long parent, u32 classid) in clsact_bind_filter() argument 196 return clsact_find(sch, classid); in clsact_bind_filter()
|
H A D | cls_flow.c | 303 u32 classid; in flow_classify() local 325 classid = jhash2(keys, f->nkeys, f->hashrnd); in flow_classify() 327 classid = keys[0]; in flow_classify() 328 classid = (classid & f->mask) ^ f->xor; in flow_classify() 329 classid = (classid >> f->rshift) + f->addend; in flow_classify() 333 classid %= f->divisor; in flow_classify() 336 res->classid = TC_H_MAKE(f->baseclass, f->baseclass + classid); in flow_classify()
|
H A D | sch_hfsc.c | 863 hfsc_find_class(u32 classid, struct Qdisc *sch) in hfsc_find_class() argument 868 clc = qdisc_class_find(&q->clhash, classid); in hfsc_find_class() 920 hfsc_change_class(struct Qdisc *sch, u32 classid, u32 parentid, in hfsc_change_class() argument 964 cl->cl_parent->cl_common.classid != parentid) in hfsc_change_class() 1023 if (classid == 0 || TC_H_MAJ(classid ^ sch->handle) != 0) in hfsc_change_class() 1025 if (hfsc_find_class(classid, sch)) in hfsc_change_class() 1058 cl->cl_common.classid = classid; in hfsc_change_class() 1062 classid, NULL); in hfsc_change_class() 1161 cl = hfsc_find_class(res.classid, sch); in hfsc_classify() 1195 cl->cl_common.classid, NULL); in hfsc_graft_class() [all …]
|
H A D | cls_fw.c | 82 res->classid = id; in fw_classify() 232 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_set_parms() 380 if (!f->res.classid && !tcf_exts_has_actions(&f->exts)) in fw_dump() 387 if (f->res.classid && in fw_dump() 388 nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid)) in fw_dump() 415 static void fw_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in fw_bind_class() argument 420 tc_cls_bind_class(classid, cl, q, &f->res, base); in fw_bind_class()
|
H A D | cls_cgroup.c | 31 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()
|
H A D | cls_bpf.c | 93 qdisc_skb_cb(skb)->tc_classid = prog->res.classid; in cls_bpf_classify() 112 res->classid = TC_H_MAJ(prog->res.classid) | in cls_bpf_classify() 125 res->classid = filter_res; in cls_bpf_classify() 500 prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]); in cls_bpf_change() 596 if (prog->res.classid && in cls_bpf_dump() 597 nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid)) in cls_bpf_dump() 630 static void cls_bpf_bind_class(void *fh, u32 classid, unsigned long cl, in cls_bpf_bind_class() argument 635 tc_cls_bind_class(classid, cl, q, &prog->res, base); in cls_bpf_bind_class()
|
H A D | cls_basic.c | 164 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); in basic_set_parms() 261 static void basic_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in basic_bind_class() argument 266 tc_cls_bind_class(classid, cl, q, &f->res, base); in basic_bind_class() 286 if (f->res.classid && in basic_dump() 287 nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid)) in basic_dump()
|
H A D | sch_prio.c | 59 band = res.classid; in prio_classify() 325 static unsigned long prio_find(struct Qdisc *sch, u32 classid) in prio_find() argument 328 unsigned long band = TC_H_MIN(classid); in prio_find() 335 static unsigned long prio_bind(struct Qdisc *sch, unsigned long parent, u32 classid) in prio_bind() argument 337 return prio_find(sch, classid); in prio_bind()
|
H A D | cls_matchall.c | 216 new->res.classid = nla_get_u32(tb[TCA_MATCHALL_CLASSID]); in mall_change() 346 if (head->res.classid && in mall_dump() 347 nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid)) in mall_dump() 379 static void mall_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in mall_bind_class() argument 384 tc_cls_bind_class(classid, cl, q, &head->res, base); in mall_bind_class()
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | skbedit_priority.sh | 119 local classid=$1; shift 126 local pkt0=$(qdisc_parent_stats_get $swp2 $classid .packets) 133 qdisc_parent_stats_get $swp2 $classid .packets) 134 check_err $? "Expected to get 10 packets on class $classid, but got $((pkt1 - pkt0))." 140 log_test "$locus skbedit priority $prio -> classid $classid"
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_capture.c | 412 guc_capture_list_init(struct intel_guc *guc, u32 owner, u32 type, u32 classid, in guc_capture_list_init() argument 424 match = guc_capture_get_one_list(reglists, owner, type, classid); in guc_capture_list_init() 435 matchext = guc_capture_get_one_ext_list(extlists, owner, type, classid); in guc_capture_list_init() 453 guc_cap_list_num_regs(struct intel_guc_state_capture *gc, u32 owner, u32 type, u32 classid) in guc_cap_list_num_regs() argument 459 match = guc_capture_get_one_list(gc->reglists, owner, type, classid); in guc_cap_list_num_regs() 465 matchext = guc_capture_get_one_ext_list(gc->extlists, owner, type, classid); in guc_cap_list_num_regs() 473 guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid, in guc_capture_getlistsize() argument 477 struct __guc_capture_ads_cache *cache = &gc->ads_cache[owner][type][classid]; in guc_capture_getlistsize() 491 !guc_capture_get_one_list(gc->reglists, owner, type, classid)) { in guc_capture_getlistsize() 497 __stringify_engclass(classid), classid); in guc_capture_getlistsize() [all …]
|
H A D | intel_guc_capture.h | 27 int intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid, 29 int intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
|
/linux/include/linux/ |
H A D | cgroup-defs.h | 853 u32 classid; /* v1 */ member 872 return READ_ONCE(skcd->classid); in sock_cgroup_classid() 887 u32 classid) in sock_cgroup_set_classid() argument 890 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()
|
/linux/include/uapi/linux/netfilter/ |
H A D | xt_cgroup.h | 19 __u32 classid; member 34 __u32 classid; member
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_v1v2.c | 10 static int run_test(int cgroup_fd, int server_fd, bool classid) in run_test() argument 27 if (classid && !ASSERT_OK(join_classid(), "join_classid")) { in run_test()
|