[PATCH 4/5] net: add dscp ranges to net cgroup

2016-08-10 Thread Anoop Naravaram
option to a value with an out-of-range dscp field, and expect a failure Signed-off-by: Anoop Naravaram <anarava...@google.com> --- Documentation/cgroup-v1/net.txt | 14 ++ include/net/net_cgroup.h| 6 ++ net/core/net_cgroup.c

[PATCH 1/5] net: create the networking cgroup controller

2016-08-10 Thread Anoop Naravaram
of udp ports that can be used by a process Also there is new documentation of this controller in Documentation/cgroup-v1/net.txt. Signed-off-by: Anoop Naravaram <anarava...@google.com> --- Documentation/cgroup-v1/net.txt | 9 ++ include/linux/cgroup_subsys.h | 4 +++ inclu

[PATCH 2/5] net: add bind/listen ranges to net cgroup

2016-08-10 Thread Anoop Naravaram
to set the range and try binding/listening to ports inside and outside the range, and ensure that an error occurred only when it should. Also, ensures that an error occurs when trying to violate the subset condition. Signed-off-by: Anoop Naravaram <anarava...@google.com> --- Documentation/

[PATCH 5/5] net: add test for net cgroup

2016-08-10 Thread Anoop Naravaram
Created a file scripts/cgroup/net_cgroup_test.py that tests the functionality of the net cgroup as described in previous commit logs. Signed-off-by: Anoop Naravaram <anarava...@google.com> --- scripts/cgroup/net_cgroup_test.py | 359 ++ 1 file change

[PATCH 3/5] net: add udp limit to net cgroup

2016-08-10 Thread Anoop Naravaram
that it is successful up until the limit, after which there should be an error. Also tried different limits at different levels of the hierarchy. Signed-off-by: Anoop Naravaram <anarava...@google.com> --- Documentation/cgroup-v1/net.txt | 26 include/net/net_cgroup.h| 29 + ne

[PATCH 0/5] Networking cgroup controller

2016-08-10 Thread Anoop Naravaram
number of udp ports that can be used by all processes is limited, this is useful for rationing out the ports to different process groups. In the future, more networking-related properties may be added to this controller. Anoop Naravaram (5): net: create the networking cgroup controller net: add