[ovs-dev] [PATCH 1/5] flow: Make size of flow struct a multiple of 8.
Ben Pfaff
blp at nicira.com
Mon Dec 13 18:27:02 UTC 2010
On Sun, Dec 12, 2010 at 12:47:03PM -0800, Jesse Gross wrote:
> The compiler wants to pad structures to a multiple of the native
> datatype for the architecture, so a multiple of 4 on 32-bit platforms
> and a multiple of 8 on 64-bit. Currently the size struct flow is
> a multiple of 4, so the total size with padding varies depending on
> the architecture, causing build asserts to fail. This explicitly pads
> it out to a multiple of 8 for consistency.
Looks good, thanks.
More information about the dev
mailing list