Lines Matching refs:head

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