ofp-util: Fix byte order of ofputil_cls_rule_from_match() parameter.
authorBen Pfaff <blp@nicira.com>
Tue, 7 Dec 2010 23:34:35 +0000 (15:34 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Dec 2010 18:27:08 +0000 (10:27 -0800)
This doesn't change any generated code so it is not a bug fix, but it
makes the byte order of the 'cookie' argument clear.

lib/ofp-util.c
lib/ofp-util.h

index eadd77ae830c2d35580293c1c0417dc35b86cb01..c296f20199cb296a5da682c99bcead1d542b9881 100644 (file)
@@ -105,7 +105,7 @@ void
 ofputil_cls_rule_from_match(const struct ofp_match *match,
                             unsigned int priority,
                             enum nx_flow_format flow_format,
-                            uint64_t cookie, struct cls_rule *rule)
+                            ovs_be64 cookie, struct cls_rule *rule)
 {
     struct flow_wildcards *wc = &rule->wc;
     unsigned int ofpfw;
index a0c103f36d16738f00d9c4f1c2071d19996bbc16..c3ed2b80201fb834cd93e61f969f059a90a268c2 100644 (file)
@@ -106,7 +106,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, enum nx_flow_format,
-                                 uint64_t cookie, struct cls_rule *);
+                                 ovs_be64 cookie, struct cls_rule *);
 void ofputil_cls_rule_to_match(const struct cls_rule *, enum nx_flow_format,
                                struct ofp_match *);
 void normalize_match(struct ofp_match *);