It is more comprehensible to use UINT16_MAX in mask assignment than OFPP_NONE.
Signed-off-by: Alex Wang <[email protected]> --- 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 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
