ofp-util: Make make_flow_mod() take cls_rule instead of struct flow.
authorBen Pfaff <blp@nicira.com>
Wed, 10 Nov 2010 22:51:49 +0000 (14:51 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 22 Nov 2010 18:11:41 +0000 (10:11 -0800)
commitdaa68e9f291f94fb40a58843ddbe8a9cc8c99ec4
tree36f4e2b54849fae68afee65fe6e0fc5a80b81139
parentd8ae4d672673cd72285eb405a96b4ac3590a7639
ofp-util: Make make_flow_mod() take cls_rule instead of struct flow.

This reduces code duplication, by eliminating a function that translates
from "struct flow" to "struct ofp_match" in favor of the existing function
ofputil_cls_rule_to_match().  It also allows the caller to specify the
desired priority (as part of the cls_rule).
lib/learning-switch.c
lib/ofp-util.c
lib/ofp-util.h