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:30:26 +0000 (19:30 -0700)
commitbed7d6a1b7316db3f0be19c9f2d58cc7d71a24fa
treeab692a16805a84f720cd58c7d0c30202ba5ab83c
parentb06b6a394a066b82a27d8baa17d6d562711d0a48
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