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

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

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

2016-08-10 Thread Anoop Naravaram
e bind range. Tested: Used a python unittest 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 Naravara

[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 --- scripts/cgroup/net_cgroup_test.py | 359 ++ 1 file changed, 359 insertions(+) create mode

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

2016-08-10 Thread Anoop Naravaram
used python to use several udp ports, ensuring 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 --- Documentation/cgroup-v1/net.txt | 26 include/net

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

2016-08-10 Thread Anoop Naravaram
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 --- Documentation/cgroup-v1/net.txt | 9 ++ include/linux/cgroup_subsys.h | 4 +++ include/net/net_cgroup.h| 27

[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