ofp-actions: Make union ofp_action more generic.
authorBen Pfaff <blp@nicira.com>
Wed, 23 Oct 2013 20:46:57 +0000 (13:46 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 23 Oct 2013 20:47:04 +0000 (13:47 -0700)
commitdba70df0cba19228f2751ad0c28d75ab422306e2
tree664a781cad52e71ffbe456203e9bc547aba2272f
parent0c20dbe410f011354dda72e1534b4070e77603d4
ofp-actions: Make union ofp_action more generic.

Make union ofp_action more generic by allowing it to be used for
all actions.  OFP_ACTION_ALIGN (which is 8, as the sizeof(union
ofp_action) used to be) is now used where sizeof union ofp_action
was used before.  On the same note, variable name 'n_actions' is
changed to 'max_actions' as the number of actions cannot be simply
divided when actions have various sizes.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-actions.c