git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
classifier: Rename struct cls_table as cls_subtable.
[sliver-openvswitch.git]
/
tests
/
test-classifier.c
diff --git
a/tests/test-classifier.c
b/tests/test-classifier.c
index
1e04550
..
3f39f8f
100644
(file)
--- 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)
{
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_
sub
table *table;
struct test_rule *test_rule;
struct cls_cursor cursor;
int found_tables = 0;
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;
int found_dups = 0;
int found_rules2 = 0;
- HMAP_FOR_EACH (table, hmap_node, &cls->tables) {
+ HMAP_FOR_EACH (table, hmap_node, &cls->
sub
tables) {
const struct cls_rule *head;
unsigned int max_priority = 0;
unsigned int max_count = 0;
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(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->
sub
tables));
+ assert(n_tables == -1 || n_tables == hmap_count(&cls->
sub
tables));
assert(n_rules == -1 || found_rules == n_rules);
assert(n_dups == -1 || found_dups == n_dups);
assert(n_rules == -1 || found_rules == n_rules);
assert(n_dups == -1 || found_dups == n_dups);