From: Simon Horman Date: Fri, 30 Mar 2012 02:29:57 +0000 (+0900) Subject: Use ovs_be16 in ofp_queue_prop_min_rate X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32430a6aeefddedec661252103b91f09d9caa969;p=openvswitch Use ovs_be16 in ofp_queue_prop_min_rate 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 Signed-off-by: Ben Pfaff --- diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 43414f4f..626585ad 100644 --- a/include/openflow/openflow-common.h +++ b/include/openflow/openflow-common.h @@ -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);