summaryrefslogtreecommitdiff
path: root/tests/test-classifier.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-11-08 10:37:35 -0800
committerBen Pfaff <blp@nicira.com>2010-11-08 10:43:32 -0800
commitb63f2ea79417e93390eaa86f68e546242e15a9ec (patch)
treeffdcb19f557cdaddddf5238d396730d65b3d100a /tests/test-classifier.c
parent39b727382adbfc3fa983edd491fd345fe642a540 (diff)
downloadopenvswitch-b63f2ea79417e93390eaa86f68e546242e15a9ec.tar.gz
flow: Better abstract flow_wildcards and use it more widely.
Diffstat (limited to 'tests/test-classifier.c')
-rw-r--r--tests/test-classifier.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-classifier.c b/tests/test-classifier.c
index 70af7ed05..6c296ecce 100644
--- a/tests/test-classifier.c
+++ b/tests/test-classifier.c
@@ -477,6 +477,7 @@ static struct test_rule *
make_rule(int wc_fields, unsigned int priority, int value_pat)
{
const struct cls_field *f;
+ struct flow_wildcards wc;
struct test_rule *rule;
uint32_t wildcards;
struct flow flow;
@@ -494,8 +495,9 @@ make_rule(int wc_fields, unsigned int priority, int value_pat)
}
rule = xzalloc(sizeof *rule);
- cls_rule_from_flow(&flow, wildcards, !wildcards ? UINT_MAX : priority,
- &rule->cls_rule);
+ flow_wildcards_init(&wc, wildcards);
+ cls_rule_init(&flow, &wc, !wildcards ? UINT_MAX : priority,
+ &rule->cls_rule);
return rule;
}