Move Autoconf's macro definitions into config.h.
[openvswitch] / switch / table-linear.c
index e6b8aed6ab52f1ac9e943578674667ef2aee8a74..ff9d60b69cd9fcf1ca9fefbf5f5b33e54bb5f17f 100644 (file)
@@ -31,6 +31,7 @@
  * derivatives without specific, written prior permission.
  */
 
+#include <config.h>
 #include "table.h"
 #include <stdlib.h>
 #include "flow.h"
@@ -115,7 +116,7 @@ static int table_linear_delete(struct sw_table *swt,
 
     LIST_FOR_EACH_SAFE (flow, n, struct sw_flow, node, &tl->flows) {
         if (flow_del_matches(&flow->key, key, strict)
-                && (strict && (flow->priority == priority))) {
+                && (!strict || (flow->priority == priority))) {
             do_delete(flow);
             count++;
         }