From: Stephen Hemminger Date: Fri, 21 May 2004 15:55:08 +0000 Subject: Re: [LARTC] New Qdisc - How to Message-Id: <20040521085508.56a8863c@dell_ss3.pdx.osdl.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Thu, 20 May 2004 20:08:31 +0200 Andreas Klauer wrote: > Am Thursday 20 May 2004 19:04 schrieb Ricardo Leite: > > - Put the new qdisc routine "sch_ric.c" into the directory > > "/usr/src/linux/net/sched/" , > > - Insert a new line on the file "/net/sched/Makefile", > > - Insert a new line on the file "/net/sched/Config.in", > > - Insert a new line on the file "/include/linux/pkt_sched.h", > > - Insert a new line on the file "/net/sched/sch_api.c" > > That's the kernel part. > > > tc qdisc add dev eth0 root bric limit 10 > > > > the kernel (or the tc command) couldn't find the the bric qdisc. > > I haven't read the source, but I assume - seeing how tc needs to be patched > in order to support HTB - that you need to add support for your scheduler > to the tc program itself too. Actually, the tc program supports adding disciplines w/o recompiling. Haven't tried it, but it looks for a shared library called q_XXX.so (where XXX is the new queue name). The shared object needs to define a struct qdisc_util that defines the new disciplines handles. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/