[ovs-dev] [PATCH v2 1/5] Use enum ofp11_group_type in struct ofgroup
Simon Horman
horms at verge.net.au
Wed Sep 4 04:42:37 UTC 2013
Use enum ofp11_group_type for the 'type' field of struct ofgroup
as the enum exactly covers all the valid values of the field.
Signed-off-by: Simon Horman <horms at verge.net.au>
---
v2
* First post
---
ofproto/ofproto-provider.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ofproto/ofproto-provider.h b/ofproto/ofproto-provider.h
index ab640c2..49f5591 100644
--- a/ofproto/ofproto-provider.h
+++ b/ofproto/ofproto-provider.h
@@ -316,7 +316,7 @@ struct ofgroup {
struct hmap_node hmap_node; /* In struct ofproto's "groups" hmap. */
struct ofproto *ofproto; /* The ofproto that contains this group. */
uint32_t group_id;
- uint8_t type; /* One of OFPGT_*. */
+ enum ofp11_group_type type; /* One of OFPGT_*. */
long long int created; /* Creation time. */
long long int modified; /* Time of last modification. */
--
1.8.4
More information about the dev
mailing list