From 32430a6aeefddedec661252103b91f09d9caa969 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Fri, 30 Mar 2012 11:29:57 +0900 Subject: [PATCH] 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 --- include/openflow/openflow-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 43414f4fe..626585adb 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); -- 2.20.1