/* * cls_cgroup.h Control Group Classifier * * Authors: Thomas Graf <tgraf@suug.ch> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * */ #ifndef _NET_CLS_CGROUP_H #define _NET_CLS_CGROUP_H #include <linux/cgroup.h> #include <linux/hardirq.h> #include <linux/rcupdate.h> #include <net/sock.h> #include <net/inet_sock.h> #ifdef CONFIG_CGROUP_NET_CLASSID struct cgroup_cls_state { struct cgroup_subsys_state css; u32 classid; }; struct cgroup_cls_state *task_cls_state(struct task_struct *p);
static inline u32 task_cls_classid(struct task_struct *p) { u32 classid; if (in_interrupt()) return 0; rcu_read_lock(); classid = container_of(task_css(p, net_cls_cgrp_id), struct cgroup_cls_state, css)->classid; rcu_read_unlock(); return classid; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Herbert Xu | 35 | 68.63% | 2 | 33.33% |
Li Zefan | 13 | 25.49% | 1 | 16.67% |
Tejun Heo | 2 | 3.92% | 2 | 33.33% |
Daniel Wagner | 1 | 1.96% | 1 | 16.67% |
Total | 51 | 100.00% | 6 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Herbert Xu | 17 | 58.62% | 1 | 33.33% |
Tejun Heo | 7 | 24.14% | 1 | 33.33% |
Daniel Borkmann | 5 | 17.24% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Daniel Borkmann | 47 | 68.12% | 1 | 33.33% |
Konstantin Khlebnikov | 16 | 23.19% | 1 | 33.33% |
Tejun Heo | 6 | 8.70% | 1 | 33.33% |
Total | 69 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Daniel Wagner | 9 | 81.82% | 1 | 50.00% |
Tejun Heo | 2 | 18.18% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Daniel Borkmann | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Herbert Xu | 87 | 37.34% | 2 | 18.18% |
Daniel Borkmann | 82 | 35.19% | 2 | 18.18% |
Konstantin Khlebnikov | 19 | 8.15% | 1 | 9.09% |
Tejun Heo | 17 | 7.30% | 3 | 27.27% |
Daniel Wagner | 15 | 6.44% | 2 | 18.18% |
Li Zefan | 13 | 5.58% | 1 | 9.09% |
Total | 233 | 100.00% | 11 | 100.00% |