X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2Ftest-classifier.c;fp=tests%2Ftest-classifier.c;h=3f39f8fae305f1d6e12ef651c13a0518508e8c3c;hb=0386824614e9739d4b20b8355cfe973d0a3655c7;hp=1e0455099116159dbd6aff11b69a63cb9dd80848;hpb=00467f7367deade04c4405e1eb2841581700d519;p=sliver-openvswitch.git diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 1e0455099..3f39f8fae 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -459,7 +459,7 @@ static void check_tables(const struct classifier *cls, int n_tables, int n_rules, int n_dups) OVS_REQ_RDLOCK(cls->rwlock) { - const struct cls_table *table; + const struct cls_subtable *table; struct test_rule *test_rule; struct cls_cursor cursor; int found_tables = 0; @@ -467,7 +467,7 @@ check_tables(const struct classifier *cls, int n_tables, int n_rules, int found_dups = 0; int found_rules2 = 0; - HMAP_FOR_EACH (table, hmap_node, &cls->tables) { + HMAP_FOR_EACH (table, hmap_node, &cls->subtables) { const struct cls_rule *head; unsigned int max_priority = 0; unsigned int max_count = 0; @@ -501,8 +501,8 @@ check_tables(const struct classifier *cls, int n_tables, int n_rules, assert(table->max_count == max_count); } - assert(found_tables == hmap_count(&cls->tables)); - assert(n_tables == -1 || n_tables == hmap_count(&cls->tables)); + assert(found_tables == hmap_count(&cls->subtables)); + assert(n_tables == -1 || n_tables == hmap_count(&cls->subtables)); assert(n_rules == -1 || found_rules == n_rules); assert(n_dups == -1 || found_dups == n_dups);