Lines Matching refs:cl
336 unsigned long cl; in qdisc_leaf() local
341 cl = cops->find(p, classid); in qdisc_leaf()
343 if (cl == 0) in qdisc_leaf()
345 return cops->leaf(p, cl); in qdisc_leaf()
676 struct Qdisc_class_common *cl; in qdisc_class_hash_grow() local
696 hlist_for_each_entry_safe(cl, next, &ohash[i], hnode) { in qdisc_class_hash_grow()
697 h = qdisc_class_hash(cl->classid, nmask); in qdisc_class_hash_grow()
698 hlist_add_head(&cl->hnode, &nhash[h]); in qdisc_class_hash_grow()
731 struct Qdisc_class_common *cl) in qdisc_class_hash_insert() argument
735 INIT_HLIST_NODE(&cl->hnode); in qdisc_class_hash_insert()
736 h = qdisc_class_hash(cl->classid, clhash->hashmask); in qdisc_class_hash_insert()
737 hlist_add_head(&cl->hnode, &clhash->hash[h]); in qdisc_class_hash_insert()
743 struct Qdisc_class_common *cl) in qdisc_class_hash_remove() argument
745 hlist_del(&cl->hnode); in qdisc_class_hash_remove()
774 unsigned long cl; in qdisc_tree_reduce_backlog() local
808 cl = cops->find(sch, parentid); in qdisc_tree_reduce_backlog()
809 cops->qlen_notify(sch, cl); in qdisc_tree_reduce_backlog()
1101 unsigned long cl; in qdisc_graft() local
1111 cl = cops->find(parent, classid); in qdisc_graft()
1112 if (!cl) { in qdisc_graft()
1122 err = cops->graft(parent, cl, new, &old, extack); in qdisc_graft()
1386 static int check_loop_fn(struct Qdisc *q, unsigned long cl,
1405 check_loop_fn(struct Qdisc *q, unsigned long cl, struct qdisc_walker *w) in check_loop_fn() argument
1411 leaf = cops->leaf(q, cl); in check_loop_fn()
1851 unsigned long cl, in tc_fill_tclass() argument
1874 if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0) in tc_fill_tclass()
1881 if (cl_ops->dump_stats && cl_ops->dump_stats(q, cl, &d) < 0) in tc_fill_tclass()
1898 unsigned long cl, int event) in tclass_notify() argument
1908 if (tc_fill_tclass(skb, q, cl, portid, n->nlmsg_seq, 0, event) < 0) { in tclass_notify()
1923 struct Qdisc *q, unsigned long cl) in tclass_del_notify() argument
1936 if (tc_fill_tclass(skb, q, cl, portid, n->nlmsg_seq, 0, in tclass_del_notify()
1942 err = cops->delete(q, cl); in tclass_del_notify()
1960 unsigned long cl; member
1972 tp->ops->bind_class(n, a->classid, a->cl, q, a->base); in tcf_node_bind()
1985 static int tc_bind_class_walker(struct Qdisc *q, unsigned long cl, in tc_bind_class_walker() argument
1993 block = cops->tcf_block(q, cl, NULL); in tc_bind_class_walker()
2007 arg.base = cl; in tc_bind_class_walker()
2008 arg.cl = a->new_cl; in tc_bind_class_walker()
2049 unsigned long cl = 0; in tc_ctl_tclass() local
2130 cl = cops->find(q, clid); in tc_ctl_tclass()
2132 if (cl == 0) { in tc_ctl_tclass()
2145 err = tclass_del_notify(net, cops, skb, n, q, cl); in tc_ctl_tclass()
2150 err = tclass_notify(net, skb, n, q, cl, RTM_NEWTCLASS); in tc_ctl_tclass()
2163 new_cl = cl; in tc_ctl_tclass()
2170 if (cl != new_cl) in tc_ctl_tclass()
2183 static int qdisc_class_dump(struct Qdisc *q, unsigned long cl, in qdisc_class_dump() argument
2188 return tc_fill_tclass(a->skb, q, cl, NETLINK_CB(a->cb->skb).portid, in qdisc_class_dump()