ofp-actions: Relax build assertion condition for ofpact_nest struct.
authorGurucharan Shetty <gshetty@nicira.com>
Wed, 12 Mar 2014 16:40:36 +0000 (09:40 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 13 Mar 2014 16:17:16 +0000 (09:17 -0700)
commit93904c85e0a166392d67e0ce5c7cbf1937497be6
tree3486c6eab4f427df90753eba754a3d0f6eedea0f
parent71812b848a533772199689a1cdc5c92d3116f417
ofp-actions: Relax build assertion condition for ofpact_nest struct.

struct ofpact has enums that are packed in case of __GNUC__.
This packing does not occur for visual studio. For 'struct ofpact_nest',
we are currently expecting that "struct ofpact actions[]" has an offset of
8 bytes.  This condition won't be true in compilers where enums are
not packed.

It is good enough if struct ofpact actions[] starts at an offset which is
a multiple of OFPACT_ALIGNTO.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.h