Lines Matching defs:head
30 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);
33 if (unlikely(!head))
37 if (!tcf_em_tree_match(skb, &head->ematches, NULL))
43 return tcf_exts_exec(skb, &head->exts, res);
60 static void __cls_cgroup_destroy(struct cls_cgroup_head *head)
62 tcf_exts_destroy(&head->exts);
63 tcf_em_tree_destroy(&head->ematches);
64 tcf_exts_put_net(&head->exts);
65 kfree(head);
70 struct cls_cgroup_head *head = container_of(to_rcu_work(work),
74 __cls_cgroup_destroy(head);
85 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
92 if (!head && !handle)
95 if (head && handle != head->handle)
98 new = kzalloc(sizeof(*head), GFP_KERNEL);
123 if (head) {
124 tcf_exts_get_net(&head->exts);
125 tcf_queue_work(&head->rwork, cls_cgroup_destroy_work);
137 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
140 if (head) {
141 if (tcf_exts_get_net(&head->exts))
142 tcf_queue_work(&head->rwork, cls_cgroup_destroy_work);
144 __cls_cgroup_destroy(head);
157 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
162 if (!head)
164 if (arg->fn(tp, head, arg) < 0) {
175 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
178 t->tcm_handle = head->handle;
184 if (tcf_exts_dump(skb, &head->exts) < 0 ||
185 tcf_em_tree_dump(skb, &head->ematches, TCA_CGROUP_EMATCHES) < 0)
190 if (tcf_exts_dump_stats(skb, &head->exts) < 0)