projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto: Factor out code from do_xlate_actions() into new function.
[openvswitch]
/
tests
/
test-classifier.c
diff --git
a/tests/test-classifier.c
b/tests/test-classifier.c
index 70af7ed05475d11164bc08909a26b2ba566781c7..6c296ecce641a78538495077c544742f91b515fa 100644
(file)
--- 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;
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;
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);
}
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;
}
return rule;
}