ovs-ofctl: Check min flow format support in negotiate_highest_flow_format().
authorBen Pfaff <blp@nicira.com>
Thu, 10 Mar 2011 19:07:10 +0000 (11:07 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 16 Mar 2011 21:53:15 +0000 (14:53 -0700)
commitf9cbfbe4f4740cedbaba32a931181a724c3afbca
tree42b68ac7c94e34aabdfbd2a4717173eff5eee319
parentce0307c473976edea30196de1ac1ade44daf7b65
ovs-ofctl: Check min flow format support in negotiate_highest_flow_format().

When the -F option wasn't set, or if it was set to an invalid flow format
for the match, this code would happily select a flow format that did not
select the user's requested match if the switch didn't support an
advanced-enough flow format.  This fixes the problem.  It also changes
behavior in the case where the user specifies a flow format that cannot
represent the match, changing this from a warning to a fatal error; this
is consistent with -F behavior for flow_mod commands.
tests/ovs-ofctl.at
utilities/ovs-ofctl.c