odp-util: Fix converting masked VLAN from flow.
authorJustin Pettit <jpettit@nicira.com>
Fri, 28 Jun 2013 00:57:57 +0000 (17:57 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 28 Jun 2013 02:51:42 +0000 (19:51 -0700)
commitecfaa1b045859d8fe1293d6efe48ac3894f1e9ad
treecd430a762dd0289a54a0a7f26e3d739d75c96acd
parente9103774938e994357767db463d793a79913e80e
odp-util: Fix converting masked VLAN from flow.

When converting the VLAN from a flow to an ODP key, the processing logic
would always store the VLAN ethertype.  However, when handling a mask,
it should be a mask, not an ethertype.  And since we don't support
bit-wise masking of the ethertype, just make it an exact-match mask.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/odp-util.c