aboutsummaryrefslogtreecommitdiff
path: root/lib/ofp-util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-05-09 16:25:48 -0700
committerBen Pfaff <blp@nicira.com>2011-05-27 15:42:19 -0700
commitb459a924d0b1700461104142fb8b12ffee384112 (patch)
treef991a486e4909936d3ad0cc20e68683141db5cb9 /lib/ofp-util.h
parentf740239011a9650ab4d63a336a4170e8f1983a63 (diff)
ofp-util: Export (again) a generalized function for normalizing rules.
Feature #5029 requests that "ovs-ofctl add-flow" report an attempt to add a flow that is not properly normalized, that is, a flow to which the switch will add extra wildcards, ignoring some fields specified by the user. This requires that ofp-util make flow normalization directly available (again). Until now, flow normalization has only been applied to OpenFlow 1.0 flows, but the concept applies equally to NXM, so this commit generalizes the implementation to NXM also.
Diffstat (limited to 'lib/ofp-util.h')
-rw-r--r--lib/ofp-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-util.h b/lib/ofp-util.h
index 975d8d2f..152f4dd8 100644
--- a/lib/ofp-util.h
+++ b/lib/ofp-util.h
@@ -101,6 +101,7 @@ int ofputil_netmask_to_wcbits(ovs_be32 netmask);
/* Work with OpenFlow 1.0 ofp_match. */
void ofputil_cls_rule_from_match(const struct ofp_match *,
unsigned int priority, struct cls_rule *);
+void ofputil_normalize_rule(struct cls_rule *, enum nx_flow_format);
void ofputil_cls_rule_to_match(const struct cls_rule *, struct ofp_match *);
/* dl_type translation between OpenFlow and 'struct flow' format. */