Re: New Qdisc - How to

Linux Advanced Routing and Traffic Control

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

 




Hello again,


The problem is almost solved (I thing)
I re-instaled the iproute2......this time with /tc into /iproute2 and modified three files:


- Makefile (modify)
- tc_qdisc.c (modify)
- q_bric.c (new)

Once more, the files are based on bfifo schedule

I compiled them with gcc and the only things I'd got were a lot of warnings and erros caused by others files.

the ggc line was:

gcc -c -O2 -fomit-frame-pointer -fno-strict-aliasing -I/usr/src/linux/include -DMODULE -DMODVERSION -D__KERNEL__ -Wall -Wstrict-prototypes -pipe -o file_out.o file_in.c

where file_in were tc_qdisc.c and q_bric.c


Do you have some idea where I failled?




Thanks on advance.
RIcardo Leite








From: Stephen Hemminger <shemminger@xxxxxxxx>
To: Andreas Klauer <Andreas.Klauer@xxxxxxxxxxxxxx>
CC: lartc@xxxxxxxxxxxxxxx
Subject: Re:  New Qdisc - How to
Date: Fri, 21 May 2004 08:55:08 -0700

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/

_________________________________________________________________
MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br


_______________________________________________
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