summaryrefslogtreecommitdiff
path: root/lib/classifier.h
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2014-11-13 11:54:31 -0800
committerJarno Rajahalme <jrajahalme@nicira.com>2014-11-14 16:00:46 -0800
commitd0999f1b34ecaefc5b3ab7bef3e7804383cdc3f7 (patch)
tree1fd28292bbf6f444b24559bcd89247508b766247 /lib/classifier.h
parentfccd7c092e09ce9767d34436bf9c70302c87c5f5 (diff)
downloadopenvswitch-d0999f1b34ecaefc5b3ab7bef3e7804383cdc3f7.tar.gz
classifier: Make insert and replace take a const rule, too.
classifier_remove() was recently changed to take a const struct cls_rule *. Make the corresponding change to classifier_replace() and classifier_insert(). This simplifies existing calling sites in ofproto. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/classifier.h')
-rw-r--r--lib/classifier.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classifier.h b/lib/classifier.h
index f7ba46c9c..a11de5ca2 100644
--- a/lib/classifier.h
+++ b/lib/classifier.h
@@ -283,9 +283,9 @@ void classifier_destroy(struct classifier *);
bool classifier_set_prefix_fields(struct classifier *,
const enum mf_field_id *trie_fields,
unsigned int n_trie_fields);
-void classifier_insert(struct classifier *, struct cls_rule *);
+void classifier_insert(struct classifier *, const struct cls_rule *);
const struct cls_rule *classifier_replace(struct classifier *,
- struct cls_rule *);
+ const struct cls_rule *);
const struct cls_rule *classifier_remove(struct classifier *,
const struct cls_rule *);