[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130829.181001.145658561677052552.davem@davemloft.net>
Date: Thu, 29 Aug 2013 18:10:01 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: jesse@...ira.com
Cc: geert@...ux-m68k.org, azhou@...ira.com, dev@...nvswitch.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-next@...r.kernel.org
Subject: Re: [-next] openvswitch BUILD_BUG_ON failed
From: Jesse Gross <jesse@...ira.com>
Date: Thu, 29 Aug 2013 14:42:22 -0700
> On Thu, Aug 29, 2013 at 2:21 PM, Geert Uytterhoeven
> <geert@...ux-m68k.org> wrote:
>> However, I have some doubts about other alignment "enforcements":
>>
>> "__aligned(__alignof__(long))" makes the whole struct aligned to the
>> alignment rule for "long":
>> 1. This is only 2 bytes on m68k, i.e. != sizeof(long).
>> 2. This is 4 bytes on many 32-bit platforms, which may be less than the
>> default alignment for "__be64" (cfr. some members of struct
>> ovs_key_ipv4_tunnel), so this may make those 64-bit members unaligned.
>
> Do any of those 32-bit architectures actually care about alignment of
> 64 bit values? On 32-bit x86, a long is 32 bits but the alignment
> requirement of __be64 is also 32 bit.
All except x86-32 do, it is in fact the odd man out with respect to this
issue.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists