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

123

/linux-master/tools/usb/usbip/libsrc/
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,
H A Dnames.c39 u_int8_t classid; member in struct:class
45 u_int8_t classid, subclassid; member in struct:subclass
51 u_int8_t classid, subclassid, protocolid; member in struct:protocol
105 const char *names_class(u_int8_t classid) argument
109 c = classes[hashnum(classid)];
111 if (c->classid == classid)
116 const char *names_subclass(u_int8_t classid, u_int8_t subclassid) argument
120 s = subclasses[hashnum((classid << 8) | subclassid)];
122 if (s->classid
127 names_protocol(u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) argument
228 new_class(const char *name, u_int8_t classid) argument
247 new_subclass(const char *name, u_int8_t classid, u_int8_t subclassid) argument
267 new_protocol(const char *name, u_int8_t classid, u_int8_t subclassid, u_int8_t protocolid) argument
[all...]
/linux-master/include/net/
H A Dcls_cgroup.h20 u32 classid; member in struct:cgroup_cls_state
27 u32 classid; local
33 classid = container_of(task_css(p, net_cls_cgrp_id),
34 struct cgroup_cls_state, css)->classid;
37 return classid;
42 u32 classid; local
44 classid = task_cls_classid(current);
45 sock_cgroup_set_classid(skcd, classid);
50 return task_cls_state(task)->classid;
55 u32 classid local
[all...]
/linux-master/net/core/
H A Dnetclassid_cgroup.c46 cs->classid = parent->classid;
59 * New sockets will already have been created with new classid.
63 u32 classid; member in struct:update_classid_context
75 sock_cgroup_set_classid(&sock->sk->sk_cgrp_data, ctx->classid);
83 static void update_classid_task(struct task_struct *p, u32 classid) argument
86 .classid = classid,
111 update_classid_task(p, css_cls_state(css)->classid);
117 return css_cls_state(css)->classid;
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
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 Dhtb.c16 u32 classid; /* 16-bit, except root. */ member in struct:mlx5e_qos_node
70 mlx5e_htb_node_create_leaf(struct mlx5e_htb *htb, u16 classid, u16 qid, argument
84 node->classid = classid;
85 hash_add_rcu(htb->qos_tc2node, &node->hnode, classid);
101 node->classid = MLX5E_HTB_CLASSID_ROOT;
102 hash_add_rcu(htb->qos_tc2node, &node->hnode, node->classid);
107 static struct mlx5e_qos_node *mlx5e_htb_node_find(struct mlx5e_htb *htb, u32 classid) argument
111 hash_for_each_possible(htb->qos_tc2node, node, hnode, classid) {
112 if (node->classid
119 mlx5e_htb_node_find_rcu(struct mlx5e_htb *htb, u32 classid) argument
147 mlx5e_htb_get_txq_by_classid(struct mlx5e_htb *htb, u16 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) 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) argument
443 mlx5e_htb_leaf_del(struct mlx5e_htb *htb, u16 *classid, struct netlink_ext_ack *extack) argument
540 mlx5e_htb_leaf_del_last(struct mlx5e_htb *htb, u16 classid, bool force, struct netlink_ext_ack *extack) argument
655 mlx5e_htb_node_modify(struct mlx5e_htb *htb, u16 classid, u64 rate, u64 ceil, struct netlink_ext_ack *extack) argument
[all...]
H A Dselq.c179 u16 classid; local
183 classid = TC_H_MIN(skb->priority);
185 classid = selq->htb_defcls;
187 if (!classid)
190 return mlx5e_htb_get_txq_by_classid(priv->htb, classid);
/linux-master/include/uapi/linux/netfilter/
H A Dxt_cgroup.h19 __u32 classid; member in struct:xt_cgroup_info_v1
34 __u32 classid; member in union:xt_cgroup_info_v2::__anon13067
/linux-master/drivers/gpu/drm/i915/gt/uc/
H A Dintel_guc_capture.h27 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,
H A Dintel_guc_capture.c416 guc_capture_list_init(struct intel_guc *guc, u32 owner, u32 type, u32 classid, argument
428 match = guc_capture_get_one_list(reglists, owner, type, classid);
439 matchext = guc_capture_get_one_ext_list(extlists, owner, type, classid);
457 guc_cap_list_num_regs(struct intel_guc_state_capture *gc, u32 owner, u32 type, u32 classid) argument
463 match = guc_capture_get_one_list(gc->reglists, owner, type, classid);
469 matchext = guc_capture_get_one_ext_list(gc->extlists, owner, type, classid);
477 guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid, argument
481 struct __guc_capture_ads_cache *cache = &gc->ads_cache[owner][type][classid];
495 !guc_capture_get_one_list(gc->reglists, owner, type, classid)) {
501 __stringify_engclass(classid), classi
518 intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid, size_t *size) argument
527 intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid, void **outptr) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_v1v2.c10 static int run_test(int cgroup_fd, int server_fd, bool classid) argument
30 if (classid && !ASSERT_OK(join_classid(), "join_classid")) {
/linux-master/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"
/linux-master/net/sched/
H A Dsch_ingress.c29 static unsigned long ingress_find(struct Qdisc *sch, u32 classid) argument
31 return TC_H_MIN(classid) + 1;
35 unsigned long parent, u32 classid)
37 return ingress_find(sch, classid);
182 static unsigned long clsact_find(struct Qdisc *sch, u32 classid) argument
184 switch (TC_H_MIN(classid)) {
187 return TC_H_MIN(classid);
194 unsigned long parent, u32 classid)
196 return clsact_find(sch, classid);
34 ingress_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) argument
193 clsact_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) argument
H A Dsch_drr.c38 static struct drr_class *drr_find_class(struct Qdisc *sch, u32 classid) argument
43 clc = qdisc_class_find(&q->clhash, classid);
53 static int drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, argument
108 cl->common.classid = classid;
111 &pfifo_qdisc_ops, classid,
168 static unsigned long drr_search_class(struct Qdisc *sch, u32 classid) argument
170 return (unsigned long)drr_find_class(sch, classid);
179 NL_SET_ERR_MSG(extack, "DRR classid must be zero");
187 u32 classid)
186 drr_bind_tcf(struct Qdisc *sch, unsigned long parent, u32 classid) argument
[all...]
H A Dcls_cgroup.c31 u32 classid = task_get_classid(skb); local
35 if (!classid)
40 res->classid = classid;
H A Dcls_fw.c82 res->classid = id;
232 f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]);
380 if (!f->res.classid && !tcf_exts_has_actions(&f->exts))
387 if (f->res.classid &&
388 nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid))
415 static void fw_bind_class(void *fh, u32 classid, unsigned long cl, void *q, argument
420 tc_cls_bind_class(classid, cl, q, &f->res, base);
H A Dcls_basic.c164 f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]);
261 static void basic_bind_class(void *fh, u32 classid, unsigned long cl, void *q, argument
266 tc_cls_bind_class(classid, cl, q, &f->res, base);
286 if (f->res.classid &&
287 nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid))
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;
259 if (res.classid == sch->handle)
261 cl = htb_find(res.classid, sch);
263 break; /* filter selected invalid classid */
284 * Routine adds class to the list (actually tree) sorted by classid.
297 if (cl->common.classid > c->common.classid)
1600 u32 classid = TC_H_MAJ(sch->handle) | local
1769 htb_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg, struct netlink_ext_ack *extack) argument
2096 htb_bind_filter(struct Qdisc *sch, unsigned long parent, u32 classid) argument
[all...]
H A Dsch_qfq.c205 static struct qfq_class *qfq_find_class(struct Qdisc *sch, u32 classid) argument
210 clc = qdisc_class_find(&q->clhash, classid);
401 static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid, argument
478 cl->common.classid = classid;
482 classid, NULL);
562 static unsigned long qfq_search_class(struct Qdisc *sch, u32 classid) argument
564 return (unsigned long)qfq_find_class(sch, classid);
579 u32 classid)
581 struct qfq_class *cl = qfq_find_class(sch, classid);
578 qfq_bind_tcf(struct Qdisc *sch, unsigned long parent, u32 classid) argument
[all...]
H A Dcls_matchall.c216 new->res.classid = nla_get_u32(tb[TCA_MATCHALL_CLASSID]);
346 if (head->res.classid &&
347 nla_put_u32(skb, TCA_MATCHALL_CLASSID, head->res.classid))
379 static void mall_bind_class(void *fh, u32 classid, unsigned long cl, void *q, argument
384 tc_cls_bind_class(classid, cl, q, &head->res, base);
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dqos.c419 node->classid = OTX2_QOS_ROOT_CLASSID;
421 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, node->classid);
468 txschq_node->classid = OTX2_QOS_CLASS_NONE;
501 u16 classid, u32 prio, u64 rate, u64 ceil,
513 node->classid = classid;
526 hash_add_rcu(pfvf->qos.qos_hlist, &node->hlist, classid);
549 otx2_sw_node_find(struct otx2_nic *pfvf, u32 classid) argument
553 hash_for_each_possible(pfvf->qos.qos_hlist, node, hlist, classid) {
554 if (node->classid
499 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) argument
562 otx2_sw_node_find_rcu(struct otx2_nic *pfvf, u32 classid) argument
574 otx2_get_txq_by_classid(struct otx2_nic *pfvf, u16 classid) argument
1203 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) argument
1342 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) argument
1478 otx2_qos_leaf_del(struct otx2_nic *pfvf, u16 *classid, struct netlink_ext_ack *extack) argument
1523 otx2_qos_leaf_del_last(struct otx2_nic *pfvf, u16 classid, bool force, struct netlink_ext_ack *extack) argument
[all...]
H A Dqos.h61 u32 classid; member in struct:otx2_qos_node
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dsched.h115 void cxgb4_sched_class_free(struct net_device *dev, u8 classid);
/linux-master/include/linux/
H A Dcgroup-defs.h829 u32 classid; /* v1 */ member in struct:sock_cgroup_data
848 return READ_ONCE(skcd->classid);
863 u32 classid)
866 WRITE_ONCE(skcd->classid, classid);
862 sock_cgroup_set_classid(struct sock_cgroup_data *skcd, u32 classid) argument
/linux-master/drivers/net/ethernet/netronome/nfp/abm/
H A Dcls.c57 if (knode->res && knode->res->classid >= abm->num_bands) {
59 "classid higher than number of bands");
199 iter->band != knode->res->classid) {
212 match->band = knode->res->classid;

Completed in 201 milliseconds

123