From: Harvey Harrison Date: Tue, 23 Sep 2008 05:45:18 +0000 Subject: Re: SCTP checksum patch for 2.6.26.5 Message-Id: <1222148718.16003.1.camel@brick> List-Id: References: <48D7C0A2.9090406@protei.ru> <20080922.131245.193705447.davem@davemloft.net> <20080923051920.GD24654@1wt.eu> In-Reply-To: <20080923051920.GD24654@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Willy Tarreau Cc: David Miller , nickolay@protei.ru, linux-kernel@vger.kernel.org, linux-sctp@vger.kernel.org, netdev@vger.kernel.org On Tue, 2008-09-23 at 07:19 +0200, Willy Tarreau wrote: > On Mon, Sep 22, 2008 at 01:12:45PM -0700, David Miller wrote: > > From: Nickolay Vinogradov > > Date: Mon, 22 Sep 2008 19:58:26 +0400 > > > > CC:'ing correct mailing lists... > > > Nickolay, > > you should use swab32(~crc32) instead. It will make use of arch-specific > optimisations when available (eg: bswap on x86). > > Willy Or look at: commit 336d3262df71fcd2661180bb35d5ea41b4cbca58 Author: Harvey Harrison Date: Fri Jul 18 23:07:09 2008 -0700 sctp: remove unnecessary byteshifting, calculate directly in big-endian In Linus' tree. Cheers, Harvey