Re: [PATCH 2/3] netcls_cgroup: introduce cgroup_cls_state->is_local

2012-11-19 Thread Daniel Wagner
Hi Tejun, On 17.11.2012 04:31, Tejun Heo wrote: -static int write_classid(struct cgroup *cgrp, struct cftype *cft, u64 value) +static int write_classid(struct cgroup *cgrp, struct cftype *cft, +const char *buf) { + struct cgroup_cls_state *cs = cgrp_cls_state(cgrp

[PATCH 2/3] netcls_cgroup: introduce cgroup_cls_state->is_local

2012-11-16 Thread Tejun Heo
cs->is_local will be used to indicate whether the cgroup has its own configuration or inherited from the parent. It's set when classid is configured by writing a positive value to cgroup file "net_cls.classid" and cleared when a negative value is written. is_local is visible to userland via cgrou