Re: [patch] alpha: fix alignment problem in csum_ipv6_magic()

2007-06-22 Thread Dustin Marquess
Ivan Kokshaysky wrote: On Thu, Jun 21, 2007 at 04:35:01PM -0700, Andrew Morton wrote: In http://bugzilla.kernel.org/show_bug.cgi?id=8659, Dustin is reporting that this patch broke tcp-on-ipv6. Oops. Two instructions operating on the 'len' arg ($18) got swapped... This should fix ev6 version, e

Re: [patch] alpha: fix alignment problem in csum_ipv6_magic()

2007-06-22 Thread Ivan Kokshaysky
On Thu, Jun 21, 2007 at 04:35:01PM -0700, Andrew Morton wrote: > In http://bugzilla.kernel.org/show_bug.cgi?id=8659, Dustin is reporting > that this patch broke tcp-on-ipv6. Oops. Two instructions operating on the 'len' arg ($18) got swapped... This should fix ev6 version, ev5 one seems to be ok.

Re: [patch] alpha: fix alignment problem in csum_ipv6_magic()

2007-06-21 Thread Andrew Morton
> On Sun, 17 Jun 2007 01:20:20 +0400 Ivan Kokshaysky <[EMAIL PROTECTED]> wrote: > Hopefully this fixes http://bugzilla.kernel.org/show_bug.cgi?id=8635 > > The struct in6_addr passed to csum_ipv6_magic() is 4 byte aligned, > so we can't use the regular 64-bit loads. > Since the cost of handling of

[patch] alpha: fix alignment problem in csum_ipv6_magic()

2007-06-16 Thread Ivan Kokshaysky
Hopefully this fixes http://bugzilla.kernel.org/show_bug.cgi?id=8635 The struct in6_addr passed to csum_ipv6_magic() is 4 byte aligned, so we can't use the regular 64-bit loads. Since the cost of handling of 4 byte and 1 byte aligned 64-bit data is roughly the same, this code can cope with any src