openflow-1.1+: move OFPTC11_TABLE_MISS_MASK out of enum
authorAndy Zhou <azhou@nicira.com>
Tue, 10 Sep 2013 20:33:08 +0000 (13:33 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Sep 2013 18:54:27 +0000 (11:54 -0700)
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 <horms@verge.net.au>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
include/openflow/openflow-1.1.h

index de88ffa..4ee9c5c 100644 (file)
@@ -452,7 +452,7 @@ enum ofp11_table_config {
                                              pipeline (OpenFlow 1.0
                                              behavior). */
     OFPTC11_TABLE_MISS_DROP = 2 << 0,     /* Drop the packet. */
-    OFPTC11_TABLE_MISS_MASK = 3
+#define OFPTC11_TABLE_MISS_MASK (3 << 0)
 };
 
 /* Flow setup and teardown (controller -> datapath). */