ovs-dpctl: Fix mega flow output
authorAndy Zhou <azhou@nicira.com>
Fri, 28 Jun 2013 05:02:58 +0000 (22:02 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 28 Jun 2013 06:58:48 +0000 (23:58 -0700)
commitdc8c5408703d5c59b15bf466637778ccc0c82c9c
tree4e322d727ef15d78a15c33ad81f28c4a4b27841f
parent9b658910ab3c709f05f8d986f13aeae9bc53b233
ovs-dpctl: Fix mega flow output

ovs-dpctl sometimes displays wildcarded fields as exact match. This
patch fixes those cases.

This patch implements the following logic. When OVS_FLOW_ATTR_MASK is
missing, the entire key attributes will be displayed as exact match fields.
When OVS_FLOW_ATTR_MASK is present, but some individual key attributes do
not have matching attributes in the mask, those key attributes will be
displayed as wildcarded fields.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c
tests/odp.at