OFPTC11_TABLE_MISS_MASK is not a valid configuration, but to indicate
there are only 2 bits being used for table miss configuration. Move
it out of the enum definition.

Reported-by: Simon Horman <ho...@verge.net.au>
Signed-off-by: Andy Zhou <az...@nicira.com>
---
 include/openflow/openflow-1.1.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/openflow/openflow-1.1.h b/include/openflow/openflow-1.1.h
index de88ffa..eeaba8b 100644
--- a/include/openflow/openflow-1.1.h
+++ b/include/openflow/openflow-1.1.h
@@ -443,6 +443,8 @@ struct ofp11_table_mod {
 };
 OFP_ASSERT(sizeof(struct ofp11_table_mod) == 8);
 
+#define OFPTC11_TABLE_MISS_MASK 3
+
 /* Flags to indicate behavior of the flow table for unmatched packets.
    These flags are used in ofp_table_stats messages to describe the current
    configuration and in ofp_table_mod messages to configure table behavior.  */
@@ -452,7 +454,6 @@ enum ofp11_table_config {
                                              pipeline (OpenFlow 1.0
                                              behavior). */
     OFPTC11_TABLE_MISS_DROP = 2 << 0,     /* Drop the packet. */
-    OFPTC11_TABLE_MISS_MASK = 3
 };
 
 /* Flow setup and teardown (controller -> datapath). */
-- 
1.7.9.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to