[ovs-dev] [PATCH] test-classifier.c: Use UINT16_MAX instead of OFPP_NONE in mask assignment
Alex Wang
alexw at nicira.com
Thu Jun 20 22:10:04 UTC 2013
It is more comprehensible to use UINT16_MAX in mask assignment than OFPP_NONE.
Signed-off-by: Alex Wang <alexw at nicira.com>
---
tests/test-classifier.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test-classifier.c b/tests/test-classifier.c
index cd081a5..601aaf8 100644
--- a/tests/test-classifier.c
+++ b/tests/test-classifier.c
@@ -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();
}
--
1.7.9.5
More information about the dev
mailing list