openflow: Separate OF1.0, OF1.1 flow_mod constants and types.
[openvswitch] / ofproto / ofproto.c
index 522b791f48220226863996beec720bdc1a64ea5c..5fa57d85ebfe35f382c54a105b96283ce7542cb9 100644 (file)
@@ -3209,9 +3209,9 @@ handle_flow_mod(struct ofconn *ofconn, const struct ofp_header *oh)
         goto exit_free_ofpacts;
     }
 
+    if (fm.flags & OFPFF10_EMERG) {
     /* We do not support the OpenFlow 1.0 emergency flow cache, which is not
      * required in OpenFlow 1.0.1 and removed from OpenFlow 1.1. */
-    if (fm.flags & OFPFF_EMERG) {
         /* We do not support the emergency flow cache.  It will hopefully get
          * dropped from OpenFlow in the near future.  There is no good error
          * code, so just state that the flow table is full. */