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 +
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
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
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
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
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