From: Jesse Gross Date: Fri, 19 Mar 2010 17:54:36 +0000 (-0400) Subject: classifer: Fix test classifier to match real classifier. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0367f1e40e05c85d67c516939265ce4fe8639be3;p=sliver-openvswitch.git classifer: Fix test classifier to match real classifier. 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. --- diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 09884d7c7..0c9574e37 100644 --- 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; } }