Received: with ECARTIS (v1.0.0; list netdev); Fri, 06 May 2005 15:08:05 -0700 (PDT) Received: from kaber.coreworks.de ([62.206.217.67]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j46M81Ov016622 for ; Fri, 6 May 2005 15:08:01 -0700 Received: from localhost ([127.0.0.1]) by kaber.coreworks.de with esmtp (Exim 4.50) id 1DUAz1-00065m-8X; Sat, 07 May 2005 00:07:43 +0200 Message-ID: <427BEAAE.409@trash.net> Date: Sat, 07 May 2005 00:07:42 +0200 From: Patrick McHardy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.7) Gecko/20050420 Debian/1.7.7-2 X-Accept-Language: en MIME-Version: 1.0 To: Asim Shankar CC: netdev@oss.sgi.com Subject: Re: SFQ: Reordering? References: <7bca1cb5050506145344d16b1e@mail.gmail.com> In-Reply-To: <7bca1cb5050506145344d16b1e@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-archive-position: 885 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: kaber@trash.net Precedence: bulk X-list: netdev Content-Length: 800 Lines: 21 Asim Shankar wrote: > Hi, > > I was looking through sch_sfq.c. From what I could make out, if the > perturbation period is non-zero (say Xseconds), then ever X seconds, > sfq_perturbation() is invoked. This changes the perturbation value > that will be used by the hash function, however, packets already > existing in the queue aren't rehashed. > > As a result, new packets being enqueued will have a different hash > value and thus packet re-ordering will take place. I ran a quick test > using netperf and tcpdump and seem to notice this re-ordering. > > Should complete rehashing take place in sfq_perturbation(), or am I > missing something? (I was looking at 2.6.9 and also took a cursory > glance at 2.6.11 on lxr.linux.no) I think we should rehash. Can you send a patch? Regards Patrick