test-classifier.c: Use UINT16_MAX instead of OFPP_NONE in mask assignment
authorAlex Wang <alexw@nicira.com>
Thu, 20 Jun 2013 22:10:04 +0000 (15:10 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 20 Jun 2013 22:20:03 +0000 (15:20 -0700)
It is more comprehensible to use UINT16_MAX in mask assignment than OFPP_NONE.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/test-classifier.c

index cd081a5..601aaf8 100644 (file)
@@ -548,7 +548,7 @@ make_rule(int wc_fields, unsigned int priority, int value_pat)
         } else if (f_idx == CLS_F_IDX_DL_TYPE) {
             match.wc.masks.dl_type = htons(UINT16_MAX);
         } else if (f_idx == CLS_F_IDX_IN_PORT) {
-            match.wc.masks.in_port.ofp_port = OFPP_NONE;
+            match.wc.masks.in_port.ofp_port = u16_to_ofp(UINT16_MAX);
         } else {
             NOT_REACHED();
         }