2005-04-18 07:34:11

by Ashmi Bhanushali

[permalink] [raw]
Subject: a networking question

hi all..

i m a new bee in lunix kernel. and i m trying to implement "FIFO+"
queuing for packet forwarding in linux kernel by modifying the
original code for packet forwarding(FIFO).

i m going to use fedora core 2 and the kernel version is 2.6.11-7. i
nned some help to locate the original code of queuing (FIFO). I looked
at some files like ip_input.c, ip_output.c and ip_forward.c in the
net/ipv4 directory of the kernel source code. but i m not sure if
these are the correct files to look for the original FIFO packet
queuing implemented in linux kernel.

could someone please help me in locating the files which has the FIFO
queuing code.

thanks in advance.

-ashmi


2005-04-19 03:24:55

by Stephen Hemminger

[permalink] [raw]
Subject: Re: a networking question

On Mon, 18 Apr 2005 00:33:57 -0700
Ashmi Bhanushali <[email protected]> wrote:

> hi all..
>
> i m a new bee in lunix kernel. and i m trying to implement "FIFO+"
> queuing for packet forwarding in linux kernel by modifying the
> original code for packet forwarding(FIFO).

The more useful way to do this is to do it at the queue discipline
layer outside of IP. Start out with sch_fifo.c and modify it for your
new algorithm.

> i m going to use fedora core 2 and the kernel version is 2.6.11-7. i
> nned some help to locate the original code of queuing (FIFO). I looked
> at some files like ip_input.c, ip_output.c and ip_forward.c in the
> net/ipv4 directory of the kernel source code. but i m not sure if
> these are the correct files to look for the original FIFO packet
> queuing implemented in linux kernel.
>
> could someone please help me in locating the files which has the FIFO
> queuing code.
>
> thanks in advance.
>
> -ashmi

Networking stuff is discussed more on the [email protected] list
and routing on [email protected]