summaryrefslogtreecommitdiff
path: root/tests/test-classifier.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-09-03 11:30:02 -0700
committerBen Pfaff <blp@nicira.com>2010-10-11 13:31:43 -0700
commitae412e7dd89489911a32c6723d4109c6d1de3a38 (patch)
tree1aa64f35d115f7ae8c7cf925a0144d5acae28a8d /tests/test-classifier.c
parent14608a1539b73f8f9812e0e791adb60825fee38b (diff)
downloadopenvswitch-ae412e7dd89489911a32c6723d4109c6d1de3a38.tar.gz
flow: Get rid of flow_t typedef.
When userspace and the kernel were using the same structure for flows, flow_t was a useful way to indicate that a structure was really a userspace flow instead of a kernel one, but now it's better to just write "struct flow" for consistency, since OVS doesn't use typedefs for structs elsewhere. Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'tests/test-classifier.c')
-rw-r--r--tests/test-classifier.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-classifier.c b/tests/test-classifier.c
index e471582b5..e0a3e9635 100644
--- a/tests/test-classifier.c
+++ b/tests/test-classifier.c
@@ -155,7 +155,7 @@ read_uint32(const void *p)
}
static bool
-match(const struct cls_rule *wild, const flow_t *fixed)
+match(const struct cls_rule *wild, const struct flow *fixed)
{
int f_idx;
@@ -187,7 +187,7 @@ match(const struct cls_rule *wild, const flow_t *fixed)
}
static struct cls_rule *
-tcls_lookup(const struct tcls *cls, const flow_t *flow, int include)
+tcls_lookup(const struct tcls *cls, const struct flow *flow, int include)
{
size_t i;
@@ -335,7 +335,7 @@ get_value(unsigned int *x, unsigned n_values)
static struct cls_rule *
lookup_with_include_bits(const struct classifier *cls,
- const flow_t *flow, int include)
+ const struct flow *flow, int include)
{
switch (include) {
case CLS_INC_WILD:
@@ -359,7 +359,7 @@ compare_classifiers(struct classifier *cls, struct tcls *tcls)
assert(classifier_count_exact(cls) == tcls_count_exact(tcls));
for (i = 0; i < confidence; i++) {
struct cls_rule *cr0, *cr1;
- flow_t flow;
+ struct flow flow;
unsigned int x;
int include;
@@ -453,7 +453,7 @@ make_rule(int wc_fields, unsigned int priority, int value_pat)
const struct cls_field *f;
struct test_rule *rule;
uint32_t wildcards;
- flow_t flow;
+ struct flow flow;
wildcards = 0;
memset(&flow, 0, sizeof flow);