flow: Remove flow_to/from_match() in favor of cls_rule_to/from_match().
authorBen Pfaff <blp@nicira.com>
Mon, 22 Nov 2010 18:10:14 +0000 (10:10 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 22 Nov 2010 18:10:14 +0000 (10:10 -0800)
commit844dff325b1f6a6f520fce9242c85162275ab7ad
tree29f3140c56bee750f37b80890b8078cde7b8db08
parent0596e89755cea856d9615a46c17c4df2574107a3
flow: Remove flow_to/from_match() in favor of cls_rule_to/from_match().

The flow_from_match() and flow_to_match() functions have to deal with most
of the state in a cls_rule anyhow, and this will increase in upcoming
commits, to the point that we might as well just use a cls_rule anyhow.
This commit therefore deletes flow_from_match() and flow_to_match(),
integrating their code into cls_rule_from_match() and the new function
cls_rule_to_match(), respectively.  It also changes each of the functions'
callers to use the new cls_rule_*() function.
lib/classifier.c
lib/classifier.h
lib/flow.c
lib/flow.h
lib/ofp-parse.c
ofproto/ofproto.c
tests/test-flows.c
utilities/ovs-ofctl.c