Re: [PATCH] crypto: fix key alignment in tcrypt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Mar 11, 2006 at 05:48:41PM -0600, Matt Mackall wrote:
>
> > > Wouldn't it be better to simply move this to the head of the structure?
> > 
> > That wouldn't help, since the whole structure will still be only 8-bit
> > aligned.
> 
> Ahh, hadn't noticed the struct was entirely populated by chars.

Actually moving it to the head is good anyway because we may reduce the
amount of padding between vectors.  On i386 however it is size-neutral
with respect to the vectors.  However, it did save 45 bytes on the code
front.

I've applied the patch with the structure rearrangement so that the large
power-of-2 sized members come first.

Thanks,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux