diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-07-06 11:45:54 -0700 |
---|---|---|
committer | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-07-06 11:46:34 -0700 |
commit | bd53aa1723a007415d26fdd8fb7da05acc06aad0 (patch) | |
tree | cdff83f858e77eee3f8052e71d0fc6b646f4f3df /tests/test-ovn.c | |
parent | 8be0036745ecda6325e27e87cdb1d23e3e3d5d34 (diff) | |
download | openvswitch-bd53aa1723a007415d26fdd8fb7da05acc06aad0.tar.gz |
classifier: Make versioning more explicit.
Now that struct cls_match has 'add_version' the 'version' in cls_match
was largely redundant. Remove 'version' from struct cls_rule, and add
it to function prototypes that need it. This makes versioning more
explicit (or less indirect) in the API.
Suggested-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tests/test-ovn.c')
-rw-r--r-- | tests/test-ovn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-ovn.c b/tests/test-ovn.c index fc6ea4b73..f57a4ec65 100644 --- a/tests/test-ovn.c +++ b/tests/test-ovn.c @@ -889,8 +889,9 @@ test_tree_shape_exhaustively(struct expr *expr, struct shash *symtab, classifier_init(&cls, NULL); HMAP_FOR_EACH (m, hmap_node, &matches) { test_rule = xmalloc(sizeof *test_rule); - cls_rule_init(&test_rule->cr, &m->match, 0, CLS_MIN_VERSION); - classifier_insert(&cls, &test_rule->cr, m->conjunctions, m->n); + cls_rule_init(&test_rule->cr, &m->match, 0); + classifier_insert(&cls, &test_rule->cr, CLS_MIN_VERSION, + m->conjunctions, m->n); } } for (int subst = 0; subst < 1 << (n_bits * n_vars); subst++) { |