From: Ben Pfaff Date: Wed, 4 Mar 2009 21:18:44 +0000 (-0800) Subject: classifier: Test exact-match flows also in test_many_rules_in_different_tables(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c683ae037bd1e70ebf001619d8395b24fe53db1;p=openvswitch classifier: Test exact-match flows also in test_many_rules_in_different_tables(). --- diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 72f5403a..5c5fe90c 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -913,7 +913,7 @@ test_many_rules_in_different_tables(void) for (i = 0; i < MAX_RULES; i++) { struct test_rule *rule; int priority = priorities[i]; - int table = rand() % (CLS_N_FIELDS - 1); + int table = rand() % (CLS_N_FIELDS + 1); int wcf = random_wcf_in_table(table, rand()); int value_pat = rand() & ((1u << CLS_N_FIELDS) - 1); rule = make_rule(wcf, priority, value_pat);