Lines Matching defs:head
28 struct cls_cgroup_head *head = rcu_dereference_bh(tp->root);
31 if (unlikely(!head))
35 if (!tcf_em_tree_match(skb, &head->ematches, NULL))
41 return tcf_exts_exec(skb, &head->exts, res);
58 static void __cls_cgroup_destroy(struct cls_cgroup_head *head)
60 tcf_exts_destroy(&head->exts);
61 tcf_em_tree_destroy(&head->ematches);
62 tcf_exts_put_net(&head->exts);
63 kfree(head);
68 struct cls_cgroup_head *head = container_of(to_rcu_work(work),
72 __cls_cgroup_destroy(head);
83 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
90 if (!head && !handle)
93 if (head && handle != head->handle)
96 new = kzalloc(sizeof(*head), GFP_KERNEL);
121 if (head) {
122 tcf_exts_get_net(&head->exts);
123 tcf_queue_work(&head->rwork, cls_cgroup_destroy_work);
135 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
138 if (head) {
139 if (tcf_exts_get_net(&head->exts))
140 tcf_queue_work(&head->rwork, cls_cgroup_destroy_work);
142 __cls_cgroup_destroy(head);
155 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
160 if (!head)
162 if (arg->fn(tp, head, arg) < 0) {
173 struct cls_cgroup_head *head = rtnl_dereference(tp->root);
176 t->tcm_handle = head->handle;
182 if (tcf_exts_dump(skb, &head->exts) < 0 ||
183 tcf_em_tree_dump(skb, &head->ematches, TCA_CGROUP_EMATCHES) < 0)
188 if (tcf_exts_dump_stats(skb, &head->exts) < 0)