Use ovs_be16 in ofp_queue_prop_min_rate
authorSimon Horman <horms@verge.net.au>
Fri, 30 Mar 2012 02:29:57 +0000 (11:29 +0900)
committerBen Pfaff <blp@nicira.com>
Fri, 30 Mar 2012 16:09:52 +0000 (09:09 -0700)
Use ovs_be16 in place of uint16_t.
This corrects an error made by me when
adding ofp_queue_prop_min_rate.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
include/openflow/openflow-common.h

index 43414f4fe33ee1c525fa9f061ecc8a39df56801a..626585adbd178a2650fae670274f17e7f953e1cd 100644 (file)
@@ -171,7 +171,7 @@ OFP_ASSERT(sizeof(struct ofp_queue_prop_header) == 8);
 /* Min-Rate queue property description. */
 struct ofp_queue_prop_min_rate {
     struct ofp_queue_prop_header prop_header; /* prop: OFPQT_MIN, len: 16. */
-    uint16_t rate;        /* In 1/10 of a percent; >1000 -> disabled. */
+    ovs_be16 rate;        /* In 1/10 of a percent; >1000 -> disabled. */
     uint8_t pad[6];       /* 64-bit alignment */
 };
 OFP_ASSERT(sizeof(struct ofp_queue_prop_min_rate) == 16);