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 07:02:34 +0000 (00:02 -0700)
commitdb6a64fa68a80990a5a93cf4249254d81587abe3
treedb09efc3ab6a8cab735142664e601820cc4655f7
parentf50a205b5ebb2eef7967d999c24a5d9755a2bdf7
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