aboutsummaryrefslogtreecommitdiff
path: root/lib/classifier.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-10-28 13:26:31 -0700
committerBen Pfaff <blp@nicira.com>2010-11-12 14:50:44 -0800
commit3c4486a5f784731b1cb289d187ad9d9e100407c3 (patch)
tree4ffbe7088504e0b8b8af89d80aa497f186e37ee4 /lib/classifier.h
parentc0a56d9fe1fdb57220b9c1e2f709ea2db5d6489d (diff)
classifier: Drop CLS_INC_* enumerations and related 'include' parameters.
This type and these parameters were useful when ofproto had the need to separately traverse exact-match rules looking for subrules, but it no longer does that because subrules (now called "facets") are not kept in the classifier any longer. All the callers are now passing CLS_INC_ALL anyhow, so we might as well delete this feature and simplify the code.
Diffstat (limited to 'lib/classifier.h')
-rw-r--r--lib/classifier.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/classifier.h b/lib/classifier.h
index 0d95a2ea..233893bb 100644
--- a/lib/classifier.h
+++ b/lib/classifier.h
@@ -67,12 +67,6 @@ struct cls_rule {
unsigned int priority; /* Larger numbers are higher priorities. */
};
-enum {
- CLS_INC_EXACT = 1 << 0, /* Include exact-match flows? */
- CLS_INC_WILD = 1 << 1, /* Include flows with wildcards? */
- CLS_INC_ALL = CLS_INC_EXACT | CLS_INC_WILD
-};
-
void cls_rule_init(const struct flow *, const struct flow_wildcards *,
unsigned int priority, struct cls_rule *);
void cls_rule_init_exact(const struct flow *, unsigned int priority,
@@ -115,17 +109,17 @@ struct cls_rule *classifier_insert(struct classifier *, struct cls_rule *);
void classifier_insert_exact(struct classifier *, struct cls_rule *);
void classifier_remove(struct classifier *, struct cls_rule *);
struct cls_rule *classifier_lookup(const struct classifier *,
- const struct flow *, int include);
+ const struct flow *);
bool classifier_rule_overlaps(const struct classifier *,
const struct cls_rule *);
typedef void cls_cb_func(struct cls_rule *, void *aux);
-void classifier_for_each(const struct classifier *, int include,
+void classifier_for_each(const struct classifier *,
cls_cb_func *, void *aux);
void classifier_for_each_match(const struct classifier *,
const struct cls_rule *,
- int include, cls_cb_func *, void *aux);
+ cls_cb_func *, void *aux);
struct cls_rule *classifier_find_rule_exactly(const struct classifier *,
const struct cls_rule *);