Re: New Qdisc - How to

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 20 May 2004 20:08:31 +0200
Andreas Klauer <Andreas.Klauer@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux