Commit Message

Allows the net_cls cgroup subsystem to be compiled as a module
From: Ben Blum <bblum@andrew.cmu.edu>
This patch modifies net/sched/cls_cgroup.c to allow the net_cls subsystem to
be optionally compiled as a module instead of builtin. The cgroup_subsys
struct is moved around a bit to allow the subsys_id to be either declared as a
compile-time constant by the cgroup_subsys.h include in cgroup.h, or, if it's
a module, initialized within the struct by cgroup_load_subsys.
Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>
---
net/sched/Kconfig | 5 ++++-
net/sched/cls_cgroup.c | 37 ++++++++++++++++++++++++++++---------
2 files changed, 32 insertions(+), 10 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Comments

> Allows the net_cls cgroup subsystem to be compiled as a module> > From: Ben Blum <bblum@andrew.cmu.edu>> > This patch modifies net/sched/cls_cgroup.c to allow the net_cls subsystem to> be optionally compiled as a module instead of builtin. The cgroup_subsys> struct is moved around a bit to allow the subsys_id to be either declared as a> compile-time constant by the cgroup_subsys.h include in cgroup.h, or, if it's> a module, initialized within the struct by cgroup_load_subsys.> > Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
But can we reorder this patch as the last patch?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

On Mon, Dec 28, 2009 at 02:34:12PM +0800, Li Zefan wrote:
> > Allows the net_cls cgroup subsystem to be compiled as a module> > > > From: Ben Blum <bblum@andrew.cmu.edu>> > > > This patch modifies net/sched/cls_cgroup.c to allow the net_cls subsystem to> > be optionally compiled as a module instead of builtin. The cgroup_subsys> > struct is moved around a bit to allow the subsys_id to be either declared as a> > compile-time constant by the cgroup_subsys.h include in cgroup.h, or, if it's> > a module, initialized within the struct by cgroup_load_subsys.> > > > Signed-off-by: Ben Blum <bblum@andrew.cmu.edu>> > Acked-by: Li Zefan <lizf@cn.fujitsu.com>> > But can we reorder this patch as the last patch?
that does make a bit more sense, saving the unloading patch from having
to touch cls_cgroup.c to add an unload_subsys() call. will do.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html