]> bbs.cooldavid.org Git - net-next-2.6.git/commit
pkt_sched: Control group classifier
authorThomas Graf <tgraf@suug.ch>
Sat, 8 Nov 2008 06:56:00 +0000 (22:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Nov 2008 06:56:00 +0000 (22:56 -0800)
commitf400923735ecbb67cbe4a3606c9479f694754f51
treebfe96ecb2860837bf858ceb180c489c931ed74d9
parent505d4f73dda9e20d59da05008f1f5eb432613e71
pkt_sched: Control group classifier

The classifier should cover the most common use case and will work
without any special configuration.

The principle of the classifier is to directly access the
task_struct via get_current(). In order for this to work,
classification requests from softirqs must be ignored. This is
not a problem because the vast majority of packets in softirq
context are not assigned to a task anyway. For this to work, a
mechanism is needed to trace softirq context.

This repost goes back to the method of relying on the number of
nested bh disable calls for the sake of not adding too much
complexity and the option to come up with something more reliable
if actually needed.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/cgroup_subsys.h
include/linux/pkt_cls.h
net/sched/Kconfig
net/sched/Makefile
net/sched/cls_cgroup.c [new file with mode: 0644]