netdev
[Top] [All Lists]

batch mode tc patch

To: kuznet@xxxxxxxxxxxxx
Subject: batch mode tc patch
From: Rafal Maszkowski <rzm@xxxxxxxxxx>
Date: Thu, 10 Aug 2000 03:01:18 +0200
Cc: netdev@xxxxxxxxxxx
In-reply-to: <19991005041006.S8664@burza.icm.edu.pl>; from rzm@burza.icm.edu.pl on Tue, Oct 05, 1999 at 04:10:06AM +0200
References: <19991005041006.S8664@burza.icm.edu.pl>
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.1i
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

<Prev in Thread] Current Thread [Next in Thread>
  • batch mode tc patch, Rafal Maszkowski <=