diff options
author | Ben Pfaff <blp@nicira.com> | 2011-05-11 14:06:48 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-05-11 14:06:48 -0700 |
commit | 08944c1db1ab2707e28deab838dc0937bf8de8ae (patch) | |
tree | 132ca0dae0ffcea779b509017447e2729755b516 /lib/classifier.h | |
parent | c084ce1d3f3147d757087502bc2ccd7400d0691f (diff) | |
download | openvswitch-08944c1db1ab2707e28deab838dc0937bf8de8ae.tar.gz |
ofproto: Make rule construction and destruction more symmetric.
Before, ->rule_construct() both created the rule and inserted into the
flow table, but ->rule_destruct() only destroyed the rule. This makes
->rule_destruct() also remove the rule from the flow table.
Diffstat (limited to 'lib/classifier.h')
-rw-r--r-- | lib/classifier.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/classifier.h b/lib/classifier.h index d3121bfb8..08e2c0dfa 100644 --- a/lib/classifier.h +++ b/lib/classifier.h @@ -121,7 +121,8 @@ void classifier_init(struct classifier *); void classifier_destroy(struct classifier *); bool classifier_is_empty(const struct classifier *); int classifier_count(const struct classifier *); -struct cls_rule *classifier_insert(struct classifier *, struct cls_rule *); +void classifier_insert(struct classifier *, struct cls_rule *); +struct cls_rule *classifier_replace(struct classifier *, struct cls_rule *); void classifier_remove(struct classifier *, struct cls_rule *); struct cls_rule *classifier_lookup(const struct classifier *, const struct flow *); |