/openbmc/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 …]
|
/openbmc/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,
|
/openbmc/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()
|
/openbmc/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() 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()
|
/openbmc/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
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | qos.c | 418 node->classid = OTX2_QOS_ROOT_CLASSID; in otx2_qos_alloc_root() 420 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, node->classid); in otx2_qos_alloc_root() 467 txschq_node->classid = OTX2_QOS_CLASS_NONE; in otx2_qos_alloc_txschq_node() 500 u16 classid, u32 prio, u64 rate, u64 ceil, in otx2_qos_sw_create_leaf_node() argument 512 node->classid = classid; in otx2_qos_sw_create_leaf_node() 525 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, classid); in otx2_qos_sw_create_leaf_node() 548 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find() argument 552 hash_for_each_possible(pfvf->qos.qos_hlist, node, hlist, classid) { in otx2_sw_node_find() 553 if (node->classid == classid) in otx2_sw_node_find() 561 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) in otx2_sw_node_find_rcu() argument [all …]
|
/openbmc/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() 181 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) in clsact_find() argument 183 switch (TC_H_MIN(classid)) { in clsact_find() 186 return TC_H_MIN(classid); in clsact_find() 193 unsigned long parent, u32 classid) in clsact_bind_filter() argument 195 return clsact_find(sch, classid); in clsact_bind_filter()
|
H A D | sch_htb.c | 259 if (res.classid == sch->handle) in htb_classify() 261 cl = htb_find(res.classid, sch); in htb_classify() 297 if (cl->common.classid > c->common.classid) in htb_add_to_id_tree() 482 p->inner.clprio[prio].last_ptr_id = cl->common.classid; in htb_deactivate_prios() 795 if (id > cl->common.classid) { in htb_id_find_next_upper() 797 } else if (id < cl->common.classid) { in htb_id_find_next_upper() 1137 .classid = TC_H_MIN(q->defcls), in htb_init() 1251 tcm->tcm_parent = cl->parent ? cl->parent->common.classid : TC_H_ROOT; in htb_dump_class() 1252 tcm->tcm_handle = cl->common.classid; in htb_dump_class() 1373 .classid = TC_H_MIN(tcm->tcm_parent), in htb_select_queue() [all …]
|
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() [all...] |
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_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 | 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() 1194 cl->cl_common.classid, NULL); in hfsc_graft_class() [all …]
|
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_qfq.c | 205 static struct qfq_class *qfq_find_class(struct Qdisc *sch, u32 classid) in qfq_find_class() argument 210 clc = qdisc_class_find(&q->clhash, classid); in qfq_find_class() 401 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 classid, NULL); in qfq_change_class() 562 static unsigned long qfq_search_class(struct Qdisc *sch, u32 classid) in qfq_search_class() argument 564 return (unsigned long)qfq_find_class(sch, classid); in qfq_search_class() 579 u32 classid) in qfq_bind_tcf() argument 581 struct qfq_class *cl = qfq_find_class(sch, classid); in qfq_bind_tcf() 604 cl->common.classid, NULL); in qfq_graft_class() [all …]
|
/openbmc/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"
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_capture.c | 416 guc_capture_list_init(struct intel_guc *guc, u32 owner, u32 type, u32 classid, in guc_capture_list_init() argument 428 match = guc_capture_get_one_list(reglists, owner, type, classid); in guc_capture_list_init() 439 matchext = guc_capture_get_one_ext_list(extlists, owner, type, classid); in guc_capture_list_init() 457 guc_cap_list_num_regs(struct intel_guc_state_capture *gc, u32 owner, u32 type, u32 classid) in guc_cap_list_num_regs() argument 463 match = guc_capture_get_one_list(gc->reglists, owner, type, classid); in guc_cap_list_num_regs() 469 matchext = guc_capture_get_one_ext_list(gc->extlists, owner, type, classid); in guc_cap_list_num_regs() 477 guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid, in guc_capture_getlistsize() argument 481 struct __guc_capture_ads_cache *cache = &gc->ads_cache[owner][type][classid]; in guc_capture_getlistsize() 495 !guc_capture_get_one_list(gc->reglists, owner, type, classid)) { in guc_capture_getlistsize() 501 __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,
|
/openbmc/linux/include/uapi/linux/netfilter/ |
H A D | xt_cgroup.h | 19 __u32 classid; member 34 __u32 classid; member
|
/openbmc/linux/include/linux/ |
H A D | cgroup-defs.h | 810 u32 classid; /* v1 */ member 829 return READ_ONCE(skcd->classid); in sock_cgroup_classid() 844 u32 classid) in sock_cgroup_set_classid() argument 847 WRITE_ONCE(skcd->classid, classid); in sock_cgroup_set_classid()
|
/openbmc/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 30 if (classid && !ASSERT_OK(join_classid(), "join_classid")) { in run_test()
|