Hello,
Is it possible to add a cgroup filter using the IPRoute class?
I would like to do something like this: (from:
https://www.kernel.org/doc/Documentation/cgroup-v1/net_cls.txt):
tc qdisc add dev eth0 root handle 10: htb
tc class add dev eth0 parent 10: classid 10:1 htb rate 40mbit
tc filter add dev eth0 parent 10: protocol ip prio 10 handle 1: cgroup
I tried:
ip.tc("add", "htb", eth0, 0x100000)
ip.tc("add-class", "htb", eth0, 0x100001, parent=0x100000, rate="40mbit")
ip.tc("add-filter", "cgroup", eth0, parent=0x100000, prio=10, protocol=socket.AF_INET, target=0x10000)
But this didn't work.
Is this supported?
Thanks,
Aryeh