I needed to speed up /sbin/tc and to be able to pass commands from another
program easily. I added batch mode to it. It can be used with a file:
tc -f file
'-' means stdin. The commands should be the same as everything given after tc
when called normally, e.g.
echo qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000 cell 8
| tc -f -
The patch and RPMs are in
ftp://SunSITE.icm.edu.pl/private/rzm/cbq.init/
Maybe it could be integrated?
I am using this tc version in my version of cbq.init , also in the above
directory. It has also additional options, peak rate support and bugs fixed.
Total setup speedup for huge number of limits (another question is how much
sense it makes) is some 30 times for these cbq.init and tc versions.
Cc: netdev
R.
--
W iskier krzesaniu żywem/Materiał to rzecz główna
|