git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
511a701
)
test-classifier.c: Use UINT16_MAX instead of OFPP_NONE in mask assignment
author
Alex Wang
<alexw@nicira.com>
Thu, 20 Jun 2013 22:10:04 +0000
(15:10 -0700)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/tests/test-classifier.c
b/tests/test-classifier.c
index
cd081a5
..
601aaf8
100644
(file)
--- 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();
}