projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2db38
)
classifer: Fix test classifier to match real classifier.
author
Jesse Gross
<jesse@nicira.com>
Fri, 19 Mar 2010 17:54:36 +0000
(13:54 -0400)
committer
Jesse Gross
<jesse@nicira.com>
Fri, 19 Mar 2010 17:54:36 +0000
(13:54 -0400)
The trivial test classifier had the same bug as the real classifier
when replacing matching flows. This caused it to not find the
original bug and then break when the bug was fixed.
tests/test-classifier.c
patch
|
blob
|
history
diff --git
a/tests/test-classifier.c
b/tests/test-classifier.c
index 6c81cd60f090b0c23b411c942c0af51d2901e1db..563690dd00725998ee034e55a0c752b3e7e4517b 100644
(file)
--- a/
tests/test-classifier.c
+++ b/
tests/test-classifier.c
@@
-111,7
+111,7
@@
tcls_insert(struct tcls *tcls, const struct test_rule *rule)
free(tcls->rules[i]);
tcls->rules[i] = xmemdup(rule, sizeof *rule);
return tcls->rules[i];
- } else if (pos->priority <
=
rule->cls_rule.priority) {
+ } else if (pos->priority < rule->cls_rule.priority) {
break;
}
}