classifier: Use OFP_DEFAULT_PRIORITY instead of literal 32768.
authorBen Pfaff <blp@nicira.com>
Fri, 10 Dec 2010 17:20:49 +0000 (09:20 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 15 Dec 2010 17:48:18 +0000 (09:48 -0800)
lib/classifier.c

index 86d8269021342c071fb766e3e21133b05666d9ea..236b1204217b6b34f659f81754daff58faac994c 100644 (file)
@@ -352,7 +352,7 @@ cls_rule_format(const struct cls_rule *rule, struct ds *s)
 
     int i;
 
-    if (rule->priority != 32768) {
+    if (rule->priority != OFP_DEFAULT_PRIORITY) {
         ds_put_format(s, "priority=%d,", rule->priority);
     }