lib: Add zero padding field to flow_wildcards.
authorEthan Jackson <ethan@nicira.com>
Fri, 3 Dec 2010 23:43:24 +0000 (15:43 -0800)
committerEthan Jackson <ethan@nicira.com>
Fri, 3 Dec 2010 23:52:59 +0000 (15:52 -0800)
commit29b639ed7522594dac03bd10ad477f2f188ce4b6
treeacaa9f470e471bc24185f92c4ae1a6eee8ac35c9
parent7237e4f4b6155eb4854cebc0a45fe845f0950b40
lib: Add zero padding field to flow_wildcards.

Before this commit, the compiler would add two bytes of padding to
the 'flow_wildcards' structure to achieve 32bit alignment.  These
two bytes had inconsistent values which caused 'flow_wildcards_hash'
to behave inconsistently.  This commit explicitly 32bit aligns
'flow_wildcards' with zero padding.

This commit also fixes an issue where in-band rules were not
getting deleted when in-band control was disabled.
lib/flow.c
lib/flow.h