Re: SCTP checksum patch for 2.6.26.5

From: Harvey Harrison
Date: Tue Sep 23 2008 - 01:45:36 EST


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 <nickolay@xxxxxxxxx>
> > 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 <harvey.harrison@xxxxxxxxx>
Date: Fri Jul 18 23:07:09 2008 -0700

sctp: remove unnecessary byteshifting, calculate directly in big-endian

In Linus' tree.

Cheers,

Harvey

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/