diff options
Diffstat (limited to 'Documentation/cgroups')
-rw-r--r-- | Documentation/cgroups/net_cls.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/cgroups/net_cls.txt b/Documentation/cgroups/net_cls.txt index 9face6bb578a..ec182346dea2 100644 --- a/Documentation/cgroups/net_cls.txt +++ b/Documentation/cgroups/net_cls.txt | |||
@@ -6,6 +6,8 @@ tag network packets with a class identifier (classid). | |||
6 | 6 | ||
7 | The Traffic Controller (tc) can be used to assign | 7 | The Traffic Controller (tc) can be used to assign |
8 | different priorities to packets from different cgroups. | 8 | different priorities to packets from different cgroups. |
9 | Also, Netfilter (iptables) can use this tag to perform | ||
10 | actions on such packets. | ||
9 | 11 | ||
10 | Creating a net_cls cgroups instance creates a net_cls.classid file. | 12 | Creating a net_cls cgroups instance creates a net_cls.classid file. |
11 | This net_cls.classid value is initialized to 0. | 13 | This net_cls.classid value is initialized to 0. |
@@ -32,3 +34,6 @@ tc class add dev eth0 parent 10: classid 10:1 htb rate 40mbit | |||
32 | - creating traffic class 10:1 | 34 | - creating traffic class 10:1 |
33 | 35 | ||
34 | tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup | 36 | tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup |
37 | |||
38 | configuring iptables, basic example: | ||
39 | iptables -A OUTPUT -m cgroup ! --cgroup 0x100001 -j DROP | ||