From: Simon Horman Date: Wed, 6 Jun 2012 07:26:36 +0000 (+0900) Subject: openflow: Add ofp11_group X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=539d1fa76f304ed9a5c0b17e4460a7535236a6a5;p=openvswitch openflow: Add ofp11_group OFPG11_ANY may be used as the out_group for ofp11_flow_mod and ofp11_flow_stats_request. Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/include/openflow/openflow-1.1.h b/include/openflow/openflow-1.1.h index 7d6e0162..8461dad2 100644 --- a/include/openflow/openflow-1.1.h +++ b/include/openflow/openflow-1.1.h @@ -471,7 +471,7 @@ struct ofp11_flow_mod { indicates no restriction. */ ovs_be32 out_group; /* For OFPFC_DELETE* commands, require matching entries to include this as an - output group. A value of OFPG_ANY + output group. A value of OFPG11_ANY indicates no restriction. */ ovs_be16 flags; /* One of OFPFF_*. */ uint8_t pad[2]; @@ -489,6 +489,20 @@ enum ofp11_group_type { OFPGT11_FF /* Fast failover group. */ }; +/* Group numbering. Groups can use any number up to OFPG_MAX. */ +enum ofp11_group { + /* Last usable group number. */ + OFPG11_MAX = 0xffffff00, + + /* Fake groups. */ + OFPG11_ALL = 0xfffffffc, /* Represents all groups for group delete + commands. */ + OFPG11_ANY = 0xffffffff /* Wildcard group used only for flow stats + requests. Selects all flows regardless + of group (including flows with no + group). */ +}; + /* Bucket for use in groups. */ struct ofp11_bucket { ovs_be16 len; /* Length the bucket in bytes, including @@ -537,7 +551,7 @@ struct ofp11_flow_stats_request { as an output port. A value of OFPP_ANY indicates no restriction. */ ovs_be32 out_group; /* Require matching entries to include this - as an output group. A value of OFPG_ANY + as an output group. A value of OFPG11_ANY indicates no restriction. */ uint8_t pad2[4]; /* Align to 64 bits. */ ovs_be64 cookie; /* Require matching entries to contain this