/* * 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 | herbert xu | 35 | 68.63% | 2 | 33.33% |
li zefan | li zefan | 13 | 25.49% | 1 | 16.67% |
tejun heo | tejun heo | 2 | 3.92% | 2 | 33.33% |
daniel wagner | daniel wagner | 1 | 1.96% | 1 | 16.67% |
Total | 51 | 100.00% | 6 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
herbert xu | herbert xu | 17 | 58.62% | 1 | 33.33% |
tejun heo | tejun heo | 7 | 24.14% | 1 | 33.33% |
daniel borkmann | daniel borkmann | 5 | 17.24% | 1 | 33.33% |
Total | 29 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
daniel borkmann | daniel borkmann | 47 | 68.12% | 1 | 33.33% |
konstantin khlebnikov | konstantin khlebnikov | 16 | 23.19% | 1 | 33.33% |
tejun heo | tejun heo | 6 | 8.70% | 1 | 33.33% |
Total | 69 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
daniel wagner | daniel wagner | 9 | 81.82% | 1 | 50.00% |
tejun heo | tejun heo | 2 | 18.18% | 1 | 50.00% |
Total | 11 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
daniel borkmann | daniel borkmann | 16 | 100.00% | 1 | 100.00% |
Total | 16 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
herbert xu | herbert xu | 87 | 37.34% | 2 | 18.18% |
daniel borkmann | daniel borkmann | 82 | 35.19% | 2 | 18.18% |
konstantin khlebnikov | konstantin khlebnikov | 19 | 8.15% | 1 | 9.09% |
tejun heo | tejun heo | 17 | 7.30% | 3 | 27.27% |
daniel wagner | daniel wagner | 15 | 6.44% | 2 | 18.18% |
li zefan | li zefan | 13 | 5.58% | 1 | 9.09% |
Total | 233 | 100.00% | 11 | 100.00% |