LARTC
[Top] [All Lists]

Re: [LARTC] Patch accurate packet scheduling for ATM/ADSL

To: "Russell Stuart" <russell-tcatm@stuart.id.au>
Subject: Re: [LARTC] Patch accurate packet scheduling for ATM/ADSL
From: "Edouard Thuleau" <thuleau@gmail.com>
Date: Thu, 26 Jul 2007 12:22:39 +0200
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=CIMxJDJsQKmDsrOzRNQHF/InigXz0J3hoObzPNSyXeU9i652IbeGM8w0GZ3eoLY39i1bnjC9Y2U72hVKLP9/fKHX63RY3UsJU5MC2JFO3YCgpjEIqBQShofFxZL2qnqaylkMFlpIdlF7z1I2JwcVqOC40fOiSH672NDgYlxl9+Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=oXX2f9KmOMCLkdIh3HqpEJCcd7atVUwkraEFZm1+EtLwl/B4pD1AEq3naZ0jTWvLHiIfkyF43iYnI3RFUNAsRyUJP9K/deuvSOtiL6WjwKEYgwm9MHXCnwCJWCIjdjyImqR5WsmaHsEAV4Up85JubhJ4I2ZtpEjIbjHJRipYCdc=
In-reply-to: <1185442724.4200.185.camel@ras>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <81c11a560707250614h6d89b614t8c906f8e552248a4@mail.gmail.com> <1185442724.4200.185.camel@ras>
Sender: lartc-bounces@mailman.ds9a.nl
Hi,

2007/7/26, Russell Stuart <russell-tcatm@stuart.id.au>:
On Wed, 2007-07-25 at 15:14 +0200, Edouard Thuleau wrote:
> I use the patch
> (http://ace-host.stuart.id.au/russell/files/tc/tc-atm/) for accurate
> the packet scheduling on ATM/ADSL link and i think I've found a bug.
> I tried to write to the author but he didn't answer me.

Sorry.  :(  I have now.

Thanks for your answer.

> I work on a Linux 2.6.17 with the iproute2-2.6.18-061002 package.
> I change the type of the cell_align char to short of the struct
> tc_ratespec in the file pkt_sched.h (in the include/linux/ directories
> of iproute package and the kernel source) :
>
> struct tc_ratespec
> {
>       unsigned char   cell_log;
>       unsigned char   __reserved;
>       unsigned short  feature;        /* Always 0 in pre-atm patch kernels */
> -     char            cell_align;     /* Always 0 in pre-atm patch kernels */
> -     unsigned char   __unused;
> +     short           cell_align;     /* Always 0 in pre-atm patch kernels */
>       unsigned short  mpu;
>       __u32           rate;
> };
>
> The results are much better and with my tests, it works very nicely.
>
> If it can help someone,

I can't see how that would change things as the cell align
always lies within the range -7..0.  The only thing that
springs to mind is perhaps you aren't using i386, and your
CPU doesn't sign extend char's???  What CPU are you using?

Yes I use an ARM big-endian architecture, it's my problem.
I understood now.
If we put a short, the patch works for all architecture, no ?

Thanks.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>