Home
last modified time | relevance | path

Searched refs:classid (Results 1 - 25 of 128) sorted by relevance

123456

/kernel/linux/linux-5.10/include/net/
H A Dcls_cgroup.h20 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 in task_get_classid() local
[all...]
/kernel/linux/linux-6.6/include/net/
H A Dcls_cgroup.h20 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 in task_get_classid() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhtb.c16 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 in mlx5e_htb_node_find()
119 mlx5e_htb_node_find_rcu(struct mlx5e_htb *htb, u32 classid) mlx5e_htb_node_find_rcu() argument
147 mlx5e_htb_get_txq_by_classid(struct mlx5e_htb *htb, u16 classid) mlx5e_htb_get_txq_by_classid() argument
286 mlx5e_htb_leaf_alloc_queue(struct mlx5e_htb *htb, u16 classid, u32 parent_classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) mlx5e_htb_leaf_alloc_queue() argument
342 mlx5e_htb_leaf_to_inner(struct mlx5e_htb *htb, u16 classid, u16 child_classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) mlx5e_htb_leaf_to_inner() argument
443 mlx5e_htb_leaf_del(struct mlx5e_htb *htb, u16 *classid, struct netlink_ext_ack *extack) mlx5e_htb_leaf_del() argument
540 mlx5e_htb_leaf_del_last(struct mlx5e_htb *htb, u16 classid, bool force, struct netlink_ext_ack *extack) mlx5e_htb_leaf_del_last() argument
655 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) mlx5e_htb_node_modify() argument
[all...]
H A Dhtb.h20 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 Dselq.c177 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()
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
H A Dnames.c39 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 in names_subclass()
127 names_protocol(u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) names_protocol() argument
228 new_class(const char *name, u_int8_t classid) new_class() argument
247 new_subclass(const char *name, u_int8_t classid, u_int8_t subclassid) new_subclass() argument
267 new_protocol(const char *name, u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) new_protocol() argument
[all...]
H A Dnames.h19 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,
/kernel/linux/linux-6.6/tools/usb/usbip/libsrc/
H A Dnames.c39 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 in names_subclass()
127 names_protocol(u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) names_protocol() argument
228 new_class(const char *name, u_int8_t classid) new_class() argument
247 new_subclass(const char *name, u_int8_t classid, u_int8_t subclassid) new_subclass() argument
267 new_protocol(const char *name, u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) new_protocol() argument
[all...]
H A Dnames.h19 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,
/kernel/linux/linux-5.10/net/core/
H A Dnetclassid_cgroup.c46 cs->classid = parent->classid; in cgrp_css_online()
59 * New sockets will already have been created with new classid.
63 u32 classid; member
76 sock_cgroup_set_classid(&sock->sk->sk_cgrp_data, ctx->classid); in update_classid_sock()
84 static void update_classid_task(struct task_struct *p, u32 classid) in update_classid_task() argument
87 .classid = classid, in update_classid_task()
106 update_classid_task(p, css_cls_state(css)->classid); in cgrp_attach()
112 return css_cls_state(css)->classid; in read_classid()
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dnetclassid_cgroup.c46 cs->classid = parent->classid; in cgrp_css_online()
59 * New sockets will already have been created with new classid.
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()
[all...]
/kernel/linux/linux-5.10/net/sched/
H A Dsch_atm.c73 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()
130 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", __func__, sch, p, classid); in atm_tc_bind_filter()
124 atm_tc_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) atm_tc_bind_filter() argument
195 atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) atm_tc_change() argument
[all...]
H A Dsch_drr.c39 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()
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()
179 NL_SET_ERR_MSG(extack, "DRR classid must be zero"); in drr_tcf_block()
187 u32 classid) in drr_bind_tcf()
186 drr_bind_tcf(struct Qdisc *sch, unsigned long parent, u32 classid) drr_bind_tcf() argument
[all...]
H A Dsch_ingress.c28 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()
36 return ingress_find(sch, classid); in ingress_bind_filter()
161 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) in clsact_find() argument
163 switch (TC_H_MIN(classid)) { in clsact_find()
166 return TC_H_MIN(classid); in clsact_find()
173 unsigned long parent, u32 classid) in clsact_bind_filter()
175 return clsact_find(sch, classid); in clsact_bind_filter()
33 ingress_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) ingress_bind_filter() argument
172 clsact_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) clsact_bind_filter() argument
H A Dsch_dsmark.c23 * classid class marking
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()
98 pr_debug("%s(sch %p,[qdisc %p],classid %x)\n", in dsmark_bind_filter()
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
125 pr_debug("%s(sch %p,[qdisc %p],classid %x,parent %x), arg 0x%lx\n", in dsmark_change()
126 __func__, sch, p, classid, paren in dsmark_change()
95 dsmark_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) dsmark_bind_filter() argument
[all...]
H A Dsch_cbq.c166 cbq_class_lookup(struct cbq_sched_data *q, u32 classid) in cbq_class_lookup() argument
170 clc = qdisc_class_find(&q->clhash, classid); in cbq_class_lookup()
239 if (TC_H_MAJ(res.classid)) in cbq_classify()
240 cl = cbq_class_lookup(q, res.classid); in cbq_classify()
241 else if ((cl = defmap[res.classid & TC_PRIO_MAX]) == NULL) in cbq_classify()
904 cl->common.classid, cl->quantum); in cbq_normalize_quanta()
955 splitid = split->common.classid; in cbq_change_defmap()
958 if (split == NULL || split->common.classid != splitid) { in cbq_change_defmap()
960 if (split->common.classid == splitid) in cbq_change_defmap()
1192 q->link.common.classid in cbq_init()
1425 cbq_find(struct Qdisc *sch, u32 classid) cbq_find() argument
1476 cbq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) cbq_change_class() argument
1727 cbq_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) cbq_bind_filter() argument
[all...]
H A Dcls_bpf.c93 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()
451 prog->res.classid = nla_get_u32(tb[TCA_BPF_CLASSID]); in cls_bpf_set_parms()
600 if (prog->res.classid && in cls_bpf_dump()
601 nla_put_u32(skb, TCA_BPF_CLASSID, prog->res.classid)) in cls_bpf_dump()
634 static void cls_bpf_bind_class(void *fh, u32 classid, unsigned long cl, in cls_bpf_bind_class() argument
639 if (prog && prog->res.classid == classid) { in cls_bpf_bind_class()
[all...]
H A Dcls_fw.c80 res->classid = id; in fw_classify()
230 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); in fw_set_parms()
386 if (!f->res.classid && !tcf_exts_has_actions(&f->exts)) in fw_dump()
393 if (f->res.classid && in fw_dump()
394 nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid)) in fw_dump()
421 static void fw_bind_class(void *fh, u32 classid, unsigned long cl, void *q, in fw_bind_class() argument
426 if (f && f->res.classid == classid) { in fw_bind_class()
/kernel/linux/linux-6.6/net/sched/
H A Dsch_drr.c38 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()
179 NL_SET_ERR_MSG(extack, "DRR classid must be zero"); in drr_tcf_block()
187 u32 classid) in drr_bind_tcf()
186 drr_bind_tcf(struct Qdisc *sch, unsigned long parent, u32 classid) drr_bind_tcf() argument
[all...]
H A Dsch_ingress.c29 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()
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()
195 return clsact_find(sch, classid); in clsact_bind_filter()
34 ingress_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) ingress_bind_filter() argument
192 clsact_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) clsact_bind_filter() argument
H A Dsch_htb.c84 * first child again. Here we store classid of the
212 * We allow direct class selection by classid in priority. The we examine
214 * node). If we end up with classid MAJOR:0 we enqueue the skb into special
228 /* allow to select class by setting skb->priority to valid classid; in htb_classify()
259 if (res.classid == sch->handle) in htb_classify()
261 cl = htb_find(res.classid, sch); in htb_classify()
263 break; /* filter selected invalid classid */ in htb_classify()
284 * Routine adds class to the list (actually tree) sorted by classid.
297 if (cl->common.classid > c->common.classid) in htb_add_to_id_tree()
1600 u32 classid = TC_H_MAJ(sch->handle) | htb_destroy_class_offload() local
1769 htb_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) htb_change_class() argument
2096 htb_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) htb_bind_filter() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
H A Dskbedit_priority.sh117 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"
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dskbedit_priority.sh119 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"
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.c418 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()
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 in otx2_sw_node_find()
498 otx2_qos_sw_create_leaf_node(struct otx2_nic *pfvf, struct otx2_qos_node *parent, u16 classid, u32 prio, u64 rate, u64 ceil, u32 quantum, u16 qid, bool static_cfg) otx2_qos_sw_create_leaf_node() argument
561 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) otx2_sw_node_find_rcu() argument
573 otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) otx2_get_txq_by_classid() argument
1202 otx2_qos_leaf_alloc_queue(struct otx2_nic *pfvf, u16 classid, u32 parent_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) otx2_qos_leaf_alloc_queue() argument
1341 otx2_qos_leaf_to_inner(struct otx2_nic *pfvf, u16 classid, u16 child_classid, u64 rate, u64 ceil, u64 prio, u32 quantum, struct netlink_ext_ack *extack) otx2_qos_leaf_to_inner() argument
1477 otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, struct netlink_ext_ack *extack) otx2_qos_leaf_del() argument
1522 otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, struct netlink_ext_ack *extack) otx2_qos_leaf_del_last() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_capture.c416 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), classi in guc_capture_getlistsize()
518 intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid, size_t *size) intel_guc_capture_getlistsize() argument
527 intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid, void **outptr) intel_guc_capture_getlist() argument
[all...]

Completed in 19 milliseconds

123456