X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=blobdiff_plain;f=tests%2Ftest-classifier.c;h=84f9367248e14334619f40defbdf887d0820b91f;hp=48eb8de5b147083b528b052f6ebbc5e7364df1af;hb=cabd4c43854275943792a8b1bb4c7b719e210259;hpb=ac4aa4c83f94cfbc0b056cb636987e39e7909cdb diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 48eb8de5b..84f936724 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -475,7 +475,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->subtables) { + HMAP_FOR_EACH (table, hmap_node, &cls->cls->subtables) { const struct cls_rule *head; unsigned int max_priority = 0; unsigned int max_count = 0; @@ -509,8 +509,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->subtables)); - assert(n_tables == -1 || n_tables == hmap_count(&cls->subtables)); + assert(found_tables == hmap_count(&cls->cls->subtables)); + assert(n_tables == -1 || n_tables == hmap_count(&cls->cls->subtables)); assert(n_rules == -1 || found_rules == n_rules); assert(n_dups == -1 || found_dups == n_dups);